16.05.2011, 18:50
pawn Код:
public OnPlayerText(playerid, text[])
{
if( (text[0] == '#' || text[0] == '@') && strlen(text) > 1)
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(!gTeam(i) == TEAM_GREEN)
{
new str[128],PlayerName[24];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
format(str,sizeof(str),"[TEAM CHAT] » %s: %s", PlayerName, text[1]);
SendClientMessage(i, 0x0080C0AA, str);
}
}
}
return 1;
}