16.08.2013, 17:50
pawn Код:
forward SendTeamMessage(color, string[]);
public SendTeamMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == TEAM)
{
SendClientMessage(i, COLOR_YELLOW, string);
}
}
}
}
//and instead of SendAdminMessage in command, SendTeamMessage, use the mind God gave you