SendRadioMessage, problem.
#7

You could do this:

pawn Код:
forward SendRadioMessage(membergroup, color, string[]);
pawn Код:
public SendRadioMessage(membergroup, color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new duty = PlayerInfo[i][pOnDuty];
            if(PlayerInfo[i][pMember] == membergroup && duty == 1 || PlayerInfo[i][pLeader] == membergroup && duty == 1)
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}

And use this at /radio for example:
pawn Код:
SendRadioMessage(1, COLOR_COP, string); // COPS
SendRadioMessage(2, COLOR_COP, string); // FBI
Reply


Messages In This Thread
SendRadioMessage, problem. - by Biesmen - 10.12.2010, 18:31
Re: SendRadioMessage, problem. - by Jochemd - 10.12.2010, 18:37
Re: SendRadioMessage, problem. - by Biesmen - 10.12.2010, 19:33
Re: SendRadioMessage, problem. - by Scenario - 10.12.2010, 19:34
Re: SendRadioMessage, problem. - by Hiitch - 10.12.2010, 19:35
Re: SendRadioMessage, problem. - by Vince - 10.12.2010, 19:37
Re: SendRadioMessage, problem. - by Mokerr - 10.12.2010, 19:53
Re: SendRadioMessage, problem. - by Biesmen - 10.12.2010, 20:01
Re: SendRadioMessage, problem. - by Scenario - 10.12.2010, 20:08
Re: SendRadioMessage, problem. - by Mokerr - 10.12.2010, 20:09

Forum Jump:


Users browsing this thread: 1 Guest(s)