Not sure if this is it but I found this in amxmodx.inc.
Code:
/* Kills player. When flag is set to 1 then death won't decrase frags. */
native user_kill(index,flag=0);
Make your script be like this I guess
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("test-slay","0.1","Bone")
register_concmd("die","die",ADMIN_KICK," user Kicks the specified user")
}
public die(id) {
if (!(get_user_flags(id)&ADMIN_KICK)) {
console_print(id,"[AMXX] No access")
return PLUGIN_HANDLED
}
if (read_argc() == 0) {
console_print(id,"[AMXX] You must specify a user")
return PLUGIN_HANDLED
}
new user[32], uid
read_argv(1,user,32)
uid = find_player("bh",user)
if (uid == 0) {
console_print(id,"[AMXX] Invalid User Id")
return PLUGIN_HANDLED
}
client_cmd(uid,"echo you got pwned!")
client_cmd(uid,"user_kill",1)
console_print(id,"Killed player!")
return PLUGIN_HANDLED
}
EDIT: What I added was a 1 after the user_kill parameter. I think you need it not sure.
__________________