Little help
#1

Hello can to help mee with SendClientMessageToAll.

Hello i want to create to send meesage to all players but not on myself.
Reply
#2

SendClientMessageToAll(color,message);
example:
SendClientMessageToAll(-1,"Hi everyone!");
Reply
#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
#4

And message come allso and on mee.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)