07.02.2011, 15:55
^^title... how can i make that a player will get random color when he connects?
public OnPlayerText(playerid, text[]) { new string[128]; new playercolor = GetPlayerColor(playerid); if(IsPlayerAdmin(playerid)) { new chater2[MAX_PLAYER_NAME]; GetPlayerName(playerid, chater2, MAX_PLAYER_NAME); format(string, sizeof(string), "[%s]: %s [id:%d | Admin]", chater2, text, playerid); SendClientMessageToAll(playercolor, string); } else { new chater[MAX_PLAYER_NAME]; GetPlayerName(playerid, chater, MAX_PLAYER_NAME); format(string, sizeof(string), "[%s]: %s [id:%d | Player]", chater, text, playerid); SendClientMessageToAll(playercolor, string); } return 1; } |