Jump to content

Player Ping


MattyNJ

Recommended Posts

Hi, I want to have a skript where if you say a players name in chat it will turn yellow. How would I see if something in the message was a player. Here is my skript

on chat:
  if message contains "UNKNOWN":
    replace "UNKNOWN" with "&eUNKNOWN&7" in message

The unknown is the part where I would but the thing for the player.

Link to comment
Share on other sites

on chat:
	cancel event
	loop all players:
		replace all "%loop-player%" in message with "&e%loop-player%&r"
		send "%colored player's nick name%&r: %message%" to player

Feel free to message on discord if this doesn't work.

 

Also, you can change the chat format in this script. 

 

Note: 

- %colored player's nick name% includes prefix, player's name and suffix.

Edited by izzzzthewiz
Typo

» IGN: _iZ_ «

» Joined: 12/18/2016 «

» VIP: 1/13/2018 «

» Helper: 1/29/2021 «

» [<3]: 5/8/2021 «

» Skript dev «

» Discord: iZz#0420 «

I have diabetes

React to this if I was helpful, found this interesting, or you're just nice 🙂

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...