18.08.2016, 12:19
Код:
public OnPlayerText(playerid, text[]) { new string[145], color = GetPlayerColor(playerid); GetPlayerName(playerid, string, 25); format(string, sizeof (string), "%s [%d]: {FFFFFF}%s", string, playerid, text); for (new i, j = GetPlayerPoolSize(); i <= j; i++) { if (!IsPlayerConnected(i)) continue; if (PlayerInfo[i][pAdmin] > 0) { SendClientMessage(i, color, string); continue; } SendPlayerMessageToPlayer(i, playerid, text); } return 0; }