If so, please tell me.
Forum




Disable /kill
13 replies



If so, please tell me.
1
2
3
4
5
6
2
3
4
5
6
addhook("parse","disable") function disable(cmd) 	if cmd == "kill" then 		return 2 	end end
1
2
3
4
5
6
2
3
4
5
6
addhook("say","disable") function disable(id,txt) 	if txt=="/kill" then 		return 1 	end end

You can always use the console to "/kill". So it's impossible.
You can always disable it the same way you can disable rcon commands. Just make it so that your USGN ID is the only one that can use the "kill" command.

It doesn't work. I can still use the command.


1
2
3
4
2
3
4
function control_parse(cmd) 	if cmd == "kill" then return 2 end 	if cmd == "restart" then info[3]=0 info[4]=0 return end end
Can anyone explain why this blocks /kill command on my PC but on dedi it is ignored?


(We didn't knew any better like 5.5 years ago)




