10.07.2013, 13:52
Quero saber como fasso para aparecer o ID do player no chat Tipo minimessi:[10] Exemplo ?
new string[256];
format(string,sizeof(string),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
public OnPlayerText(playerid, text[])
{
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(string, sizeof (string), "%s [ %d ] %s", name, playerid, text);
SendPlayerMessageToAll(playerid, string);
return 0;
}