I have this plugin
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "plugin_slay"
#define VERSION "1.0"
#define AUTHOR "YANKEE"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_slay","cmdSlay",ADMIN_KICK, "<nume> - il omori")
}
public cmdSlay(id,level,cid){
if(!cmd_access(id,level,cid,2)){
return PLUGIN_HANDLED;
}
new arg[32],admin[32],name2[32];
read_argv ( 1 , arg , 31 )
new target = cmd_target ( id , arg , 9 )
if(!is_user_alive(id)){
console_print(id, "[Bucov AMXX] %s nu este viu.", target)
return PLUGIN_HANDLED
}
get_user_name(id,admin,31);
get_user_name(target, name2, 31);
client_cmd(target,"kill")
log_amx("Slay: ^"%s^" amx_slay ^"%s^" ", admin, name2)
client_print(0, print_chat, "Admin %s: foloseste comanda amx_slay %s", admin, name2)
return PLUGIN_HANDLED
}
if an admin has immunity he still get slay