Advertisement
Azelphur

Untitled

Jun 27th, 2011
533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. public OnClientPreConnect(const String:name[], const String:pass[], const String:ip[], const String:authid[])
  2. {
  3.     if (GetClientCount(false) < MaxClients)
  4.     {
  5.         return;
  6.     }
  7.  
  8.     new AdminId:admin = FindAdminByIdentity(AUTHMETHOD_STEAM, authid);
  9.    
  10.     if (admin == INVALID_ADMIN_ID)
  11.     {
  12.         return;
  13.     }
  14.    
  15.     if (GetAdminFlag(admin, Admin_Reservation))
  16.     {
  17.         new target = SelectKickClient();
  18.                        
  19.         if (target)
  20.         {
  21.             KickClientEx(target, "Slot reserved");
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement