18.03.2010, 12:33
And i would advise add the name too and reduce the string to 128 cells
Edit: And use a color which isn't playerid
pawn Код:
public OnPlayerText(playerid,text[]){
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new msg[128];
format(msg,sizeof(msg),"[%d] %s: %s",playerid,name,text);
SendPlayerMessageToAll(0xFFFFFF,msg);
return 0;
}
Edit: And use a color which isn't playerid