2 Things
#5

Try these for reserving slots
pawn Код:
//At top of the script (under includes or somewhere there)
new ConnectedPlayers;

OnGameModeExit()
{
    ConnectedPlayers = 0;
}

OnGameModeInit()
{
    ConnectedPlayers = 0;
}

OnPlayerConnect(playerid)
{
    ConnectedPlayers++;
    if(vip == 0 && ConnectedPlayers >= 18) // Replace  vip with your variable for vip
    {
     SendClientMessage(playerid,YOUR_COLOR,"You are kicked due to slot reservation");
     kick(playerid);
    }
}

OnPlayerDisconnect(playerid,reason)
{
    ConnectedPlayers--;
}
Reply


Messages In This Thread
2 Things - by Rokzlive - 19.03.2011, 19:37
Re: 2 Things - by Rokzlive - 19.03.2011, 19:44
Re: 2 Things - by Serbish - 19.03.2011, 19:46
Re: 2 Things - by Rokzlive - 19.03.2011, 19:47
Re: 2 Things - by DRIFT_HUNTER - 19.03.2011, 19:56
Re: 2 Things - by Rokzlive - 19.03.2011, 20:15
Re: 2 Things - by Rokzlive - 19.03.2011, 20:25
Re: 2 Things - by maramizo - 19.03.2011, 20:28
Re: 2 Things - by Rokzlive - 19.03.2011, 20:31
Re: 2 Things - by Rokzlive - 19.03.2011, 21:12

Forum Jump:


Users browsing this thread: 3 Guest(s)