Advertisement
Noneatme

Untitled

Jan 16th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1.     if(_oc.banSettings.bansEnabled) then
  2.         -- If the Serial was Found
  3.         if(_oc.banSettings.checkSerial) then
  4.  
  5.             if(self.sSerial == sha256(getPlayerSerial(uPlayer))) then
  6.                 bCancel = true;
  7.             end
  8.         end
  9.         -- If the IP was Found
  10.         if(_oc.banSettings.checkIP) then
  11.             if(self.sIP == sha256(getPlayerIP(uPlayer))) then
  12.                 bCancel = true;
  13.             end
  14.         end
  15.  
  16.         -- If the Name was Found
  17.         if(_oc.banSettings.checkName) then
  18.             if(self.sPlayerName == getPlayerName(uPlayer)) then
  19.                 bCancel = true;
  20.             end
  21.         end
  22.  
  23.         if(self:IsExpired() == true) then
  24.             -- Bann expired
  25.             bCancel = false;
  26.         end
  27.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement