Little help
#3

pawn Код:
SendMessageToAll(-1, "some tests", 1);
Everyone will receive the message except ID 1.

pawn Код:
SendMessageToAll(color, const string[], exception = INVALID_PLAYER_ID)
{
    if (exception != INVALID_PLAYER_ID)
    {
        foreach(new i : Player)
        {
            if (i != exception) SendClientMessage(i, color, string);
        }
    }
    else
    {
        foreach(new i : Player) SendClientMessage(i, color, string);
    }
}
Reply


Messages In This Thread
Little help - by arlindi - 27.06.2014, 19:17
Re: Little help - by Eth - 27.06.2014, 19:27
Re: Little help - by Konstantinos - 27.06.2014, 19:27
Re: Little help - by arlindi - 27.06.2014, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)