Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MAX_RESERVED_SLOTS 3
- public OnPlayerConnect(playerid){
- new players = -1;
- for(new i = 0; i <MAX_PLAYERS; i++){
- if(!IsPlayerNPC(i)){
- if(IsPlayerConnected(i)) players++;
- }
- }
- if(players >= MAX_PLAYERS-MAX_RESERVED_SLOTS){
- if(Player[playerid][VIP] == 0) Kick(playerid); // Player[playerid][VIP] (my new) == 0? bye :-D
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement