event system help
#7

Quote:
Originally Posted by Gameluner
Посмотреть сообщение
//Code
There is no need to place the "playersteleported" check inside the loop.

And he asked for a limit of 10, not more than 11.

pawn Код:
new PlayersInEvent = 0;

CMD:tpevent(playerid, params[])
{
    if(PlayersInEvent >= 10) return SCM(playerid, -1, "Event is full.");
   
    foreach(new i : Player)
    {
        if(EventOrganizer[i] == 1) GetPlayerPos(i, Float, Float:y, Float:z);
    }
   
    SetPlayerPos(playerid, Float, Float:y, Float:z);

    PlayersInEvent++
    return 1;
}
Reply


Messages In This Thread
event system help - by bosmania - 14.03.2019, 14:00
Re: event system help - by TheToretto - 14.03.2019, 14:18
Re: event system help - by bosmania - 14.03.2019, 14:22
Re: event system help - by TheToretto - 14.03.2019, 14:24
Re: event system help - by bosmania - 14.03.2019, 14:45
Re: event system help - by Gameluner - 14.03.2019, 15:01
Re: event system help - by SymonClash - 14.03.2019, 20:15

Forum Jump:


Users browsing this thread: 4 Guest(s)