Send a message to everyone near except for the person self
#2

Have a loop through the players and if the iterator variable is equal to the playerid, skip it.
pawn Код:
for (new i = 0, j = GetPlayerPoolSize(); i <= j; i++) // foreach(new i : Player)
{
    if (i == playerid) continue;

    SendClientMessage(i, ...);
}
Reply


Messages In This Thread
Send a message to everyone near except for the person self - by justjamie - 02.06.2016, 12:18
Re: Send a message to everyone near except for the person self - by Konstantinos - 02.06.2016, 12:21
Re: Send a message to everyone near except for the person self - by Luicy. - 02.06.2016, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)