19.03.2011, 19:56
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--;
}