11.09.2009, 11:28
You could try something like:
Untested.
Код:
public OnPlayerText(playerid, text[]) { new string[256], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if (gTeam[playerid] == TEAM_ATTACK) { format(string, sizeof(string), "%s[Attack]: %s", name, text[]); SendClientMessageToAll(COLOR_WHITE, string); } else if (gTeam[playerid] == TEAM_DEFENCE) { format(string, sizeof(string), "%s[Defence]: %s", name, text[]); SendClientMessageToAll(COLOR_WHITE, string); } return false; }