27.10.2010, 17:51
pawn Код:
if(!strcmp(cmdtext, "/t", true, 2))
{
new gTeam[MAX_PLAYERS];
new string[128], Player[MAX_PLAYER_NAME];
GetPlayerName(playerid, Player, MAX_PLAYER_NAME);
format(string, 128, "Equipe: %s: %s", Player, cmdtext[2]);
for(new i=0; i<MAX_PLAYERS; i++) if(gTeam[i]==gTeam[playerid]) SendClientMessage(i, 0xFFFF00FF, string);
return 1;
}