Im making a simple script core for my servers that will consist of some admin commands and things like that, i wanted to know, how can i send a message to everyone in the server, not just the player that opens a gui or does a command. Need this for a clear chat part ( command ).
Ok its easy , for send message of all players is necessari use the variable loop all players. Code (Text): command /Message [<text>]: trigger: loop all players: send "%arg 1%" to loop-player For clear chat use more brodcast ! For util spaces !
What you did isn't professional, such as you used a loop when you can just do: Code (Text): send "the message" to all players If you want it to be in a specific world, you an do: Code (Text): send "the message to all players in world("world name here") #or with the broadcast effect: broadcast "the message" in world("world name here")
That is going to work too, but you still need to loop the comand itself around 200 times or even more to clear the chat properly.