Chat command
#2

pawn Код:
new string[128];
format(string, sizeof(string), "%s {FFFF00}(%d): %s ", GetPlayerNameEx(playerid), playerid, params);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 1;
Untested. This means that it will send the client message is there player color. BUT I made it so the color you used before on SendClientMessageToAll to be applied after the players name, meaning only the players name would be colored.

Not sure if this will work, haven't decided to do this before.
Reply


Messages In This Thread
Chat command - by ShawnMiller1337 - 13.06.2012, 21:24
Re: Chat command - by Kindred - 13.06.2012, 21:29
Re: Chat command - by Yuryfury - 13.06.2012, 21:32

Forum Jump:


Users browsing this thread: 1 Guest(s)