Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif cmd[1] == "!tempban" then
- if nr(cmd[2]) and nr(cmd[3]) and cmd[4] and not cmd[5] then
- if p[id].cmd >= 7 then
- if nr(cmd[3]) > 0 and nr(cmd[3]) <= 1440 then
- if player(cmd[2],"usgn") == 0 then
- parse("banip "..nr(cmd[2]).." "..cmd[3].." "..cmd[4])
- msg("\169255255100Player ".."\169050200050"..player(nr(cmd[2]),"name").." was ".."\169200050050BANNED".."\169255255100. [No USGN,Banned on IP]")
- return 1
- else
- parse("banusgn "..nr(cmd[2]).." "..cmd[3].." "..cmd[4])
- msg("\169255255100Player ".."\169050200050"..player(nr(cmd[2]),"name").." was ".."\169200050050BANNED".."\169255255100. [USGN]")
- return 1
- end
- else
- msg2(id,"\169200000000Invalid time value! Only 1-1440 permited!")
- end
- else
- msg2(id,"\169200000000You don't have the right to use this command!")
- return 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement