10.09.2015, 16:45
Quote:
Hey guys i try to make my chat have like Name(ID): *Message* but for some reason my name is black can you help me please?
Код:
public OnPlayerText(playerid, text[]) { new message[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(message,sizeof(message),"%s{00FF00}(%d):{FFFFFF} %s",name,playerid,text); SendClientMessageToAll(GetPlayerColor(playerid),message); return 0; } |
https://sampwiki.blast.hk/wiki/GetPlayerColor