SHARE
TWEET

Untitled

a guest Jul 17th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Thread CheckSlot to onPlayerConnect
  2. onPlayerConnect()
  3. {
  4.     self thread CheckSlot();
  5. }
  6.  
  7. //Lets check if player has available room to connect
  8. CheckSlot()
  9. {
  10.     if( count( level.players ) >= 17 )
  11.     {
  12.         if( CheckForAdmin( self ) != true )
  13.             self Kick();
  14.     }
  15. }
  16.  
  17. //Checks if player is admin
  18. CheckForAdmin()
  19. {
  20.     switch( self )
  21.     {
  22.         case self.name == "=BC= Fakie":
  23.         return true;
  24.         break;
  25.         case self.name == "=BC= Ardivaba":
  26.         return true;
  27.         break;
  28.     }
  29. }
RAW Paste Data
Top