04.11.2010, 15:04
I tried to add playerid when player Text something but...
it shows 2 messages and its in 1 color:
i know... but i did sometihng wrong....
it shows 2 messages and its in 1 color:
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s(%i): %s",pName,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 1;
}