11.01.2012, 14:22
Quote:
Try this one:
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '#') { new string[128]; GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "[Team Chat] %s (%d): %s", string, playerid, text[1]); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string); } return 0; } return 1; } |