29.07.2010, 17:05
pawn Код:
public OnPlayerText(playerid, text[])
{
for(new x=0; x!=MAX_PLAYERS; x++)
{
if(gTeam[x] == gTeam[playerid])
{
new str[128];
format(str, sizeof(str), "<TeamChat> %s: %s", pName(playerid), text);
SendClientMessage(playerid, 0xFAFFFF, str);
return 0;
}
}
return 1;
}