Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1.     elseif cmd[1] == "!tempban" then
  2.         if nr(cmd[2]) and nr(cmd[3]) and cmd[4] and not cmd[5] then
  3.             if p[id].cmd >= 7 then
  4.                 if nr(cmd[3]) > 0 and nr(cmd[3]) <= 1440 then
  5.                     if player(cmd[2],"usgn") == 0 then
  6.                         parse("banip "..nr(cmd[2]).." "..cmd[3].." "..cmd[4])
  7.                         msg("\169255255100Player ".."\169050200050"..player(nr(cmd[2]),"name").." was ".."\169200050050BANNED".."\169255255100. [No USGN,Banned on IP]")
  8.                         return 1
  9.                     else
  10.                         parse("banusgn "..nr(cmd[2]).." "..cmd[3].." "..cmd[4])
  11.                         msg("\169255255100Player ".."\169050200050"..player(nr(cmd[2]),"name").." was ".."\169200050050BANNED".."\169255255100. [USGN]")
  12.                         return 1
  13.                     end
  14.                 else
  15.                     msg2(id,"\169200000000Invalid time value! Only 1-1440 permited!")
  16.                 end
  17.             else
  18.                 msg2(id,"\169200000000You don't have the right to use this command!")
  19.                 return 1
  20.             end
  21.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement