Try this:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("No Kill", "1.0", "sen-me http://privat.multi-pages.de")
register_cvar("mp_kill", "0")
register_clcmd("kill" , "cmd_kill");
}
public cmd_kill(id)
{
if(get_cvar_num("mp_kill") == 1)
{
new name[32]
get_user_name(id, name, 31)
client_print(0, print_chat, "[%s] The command kill is forbidden!", name)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
I slightly modified your code & hooked the kill command to a function that should block it.
__________________