12.05.2012, 17:31
Quote:
I've formatted it twice because the first string get visible on the echo channel (so you can see what user said),and the second,obviously,it sends the message to the players.
|
For example:
pawn Код:
new string[128];
format(string, 128, "String 1");
SendClientMessageToAll(RED, string); //Will send "String 1" to everybody
print(string); //Prints "String 1"
format(string, 128, "String 2");
SendClientMessageToAll(RED, string); //Will send "String 2" to everybody
print(string); //Prints "String 2"