05.05.2010, 04:49
This uses gTeam, if you do not use gTeam, replace it for what you do use.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new MSG[128], Pname[24];
GetPlayerName(playerid, Pname, 24);
format(MSG, 128, "*** %s: %s", Pname, text);
for(new i; i<MAX_PLAYERS; i++)
{
if(gTeam[i] == gTeam[playerid]) SendClientMessage(playerid, 0x33AA33AA, MSG);
}
return 0;
}
return 1;
}