1
hc.add_say_command("kick", mod_kick_command, hc.MODERATOR1, "<id> <[reason]>", "Kick someone. You can also specify a reason.")
Apparently i specified the function "mod_kick_command" there but when i copy/pasted the kick function:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
hc.add_say_command("kick", mod_kick_command, hc.MODERATOR1, "<id> <[reason]>", "Kick someone. You can also specify a reason.")
function reason_string(div,str)
if (div=='') then return false end
local pos,arr = 0,{}
for st,sp in function() return str:find(div,pos,true) end do
table.insert(arr,str:sub(pos,st-1))
pos = sp + 1
end
table.insert(arr,str:sub(pos))
return arr
end
function mod_kick_command(p, id)
local array = {}
local kick_reason = ""
array = reason_string(" ", id)
for i = 2, #array do
kick_reason = kick_reason.." "..array[i]
end
hc.exec(p, "kick " .. array[1]..' "'..kick_reason..'"')
end
thank you so much @1
2
3
4
if hc.get_level(array[1]) < hc.VIP then
hc.exec(p, "kick " .. array[1]..' "'..kick_reason..'"')
	elseif hc.get_level(array[1]) >= hc.VIP then
	 msg2(p,hc.RED.."Cannot kick VIP or higher")
Even if i added the hc.get_level things(so i VIP or higher cant be kicked) i was still able to kick myself from the server lol.