SendTeamMessage
#4

Better version, you can specify the team in this, as well as the color:

pawn Код:
forward SendTeamMessage(teamid, color, const message[]);

public SendTeamMessage(teamid, color, const message[])
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(GetPlayerTeam(i) != teamid) continue;

        SendClientMessage(i, color, message);
    }
    return 1;
}
Just use it like a normal SendClientMessage, but replace 'playerid', with the teamid the message has to be sent to.
Reply


Messages In This Thread
SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:18
Re: SendTeamMessage - by ViruZZzZ_ChiLLL - 29.07.2010, 11:24
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:28
Re: SendTeamMessage - by Vince - 29.07.2010, 11:32
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:43
Re: SendTeamMessage - by Vince - 29.07.2010, 11:46
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:48
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:53
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 12:27
Re: SendTeamMessage - by jonrb - 29.07.2010, 13:16

Forum Jump:


Users browsing this thread: 3 Guest(s)