23.01.2015, 15:59
Can anyone help with the IDs in front of the name for ex. MyName(ID): <My chat text here>
I have this code where I found in forums
But the name in chat is black can someone help me?
I have this code where I found in forums
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s(%d): %s",playername, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}