SendClientMessage to PlayerTeam
#3

pawn Код:
//Usage
SendTeamMessage(15, 0xFFFFFFAA, "Hello team, we are team 15 and this text color is white, Awesum!");
pawn Код:
//Paste this somewhere in ur script but not in inside of any callbacks
stock SendTeamMessage(team, color, const message[]) //CyberGhost
{
    for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
    {
        if(GetPlayerTeam(i) == team)
        {
            SendClientMessage(i, color, message);
        }
    }
    return 1;
}
Edit: Too late
Reply


Messages In This Thread
SendClientMessage to PlayerTeam - by Rolyy - 02.06.2011, 12:50
Re: SendClientMessage to PlayerTeam - by Steve M. - 02.06.2011, 12:56
Re: SendClientMessage to PlayerTeam - by Laronic - 02.06.2011, 12:59
Re: SendClientMessage to PlayerTeam - by Rolyy - 02.06.2011, 13:18
Re: SendClientMessage to PlayerTeam - by Laronic - 02.06.2011, 13:37
Re: SendClientMessage to PlayerTeam - by Rolyy - 02.06.2011, 14:47
Re: SendClientMessage to PlayerTeam - by Laronic - 02.06.2011, 15:59
Re: SendClientMessage to PlayerTeam - by Jack Shred - 02.06.2011, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)