Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Thread CheckSlot to onPlayerConnect
- onPlayerConnect()
- {
- self thread CheckSlot();
- }
- //Lets check if player has available room to connect
- CheckSlot()
- {
- if( count( level.players ) >= 17 )
- {
- if( CheckForAdmin( self ) != true )
- self Kick();
- }
- }
- //Checks if player is admin
- CheckForAdmin()
- {
- switch( self )
- {
- case self.name == "=BC= Fakie":
- return true;
- break;
- case self.name == "=BC= Ardivaba":
- return true;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement