Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ipmute = {}
- function hc.moderation.muteip_say_command(p, arg)
- local array = explode(" ", arg)
- if array[1]~=nil and array[2]~=nil and player(array[1],"exists") then
- msg2(p,array[1]..array[2])
- if tonumber(array[2]) > 5 or tonumber(array[2]) < 1 then array[2] = 5 end
- table.insert(ipmute, player(tonumber(array[1]),"ip"))
- timer(tonumber(array[2])*1000*60,"remove_ip",player(tonumber(array[1]),"ip"))
- end
- end
- function hc.moderation.check_ipmuted(id,msg)
- local ip = player(id,"ip")
- for key,value in pairs(ipmute) do
- if ip == value then return 1 end
- end
- end
- function remove_ip(ip)
- for key,value in pairs(ipmute) do
- if value == ip then table.remove(ipmute, key) end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement