lol are you using this straight off BAILOPAN's tutorial on his post?
if you are i was getting the same error b4, i looked into other plugins to see how they find users and its completely different
Code:
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")
console_print(id,"Killed player!")
return PLUGIN_HANDLED
}
try changing to:
Code:
public die (id,level,cid)
if (!cmd_access(id,level,cid,2))
{
console_print(id, "[AMXX] No Access")
return PLUGIN_HANDLED
}
new arg[32]
read_argv(1, arg, 31)
new user =cmd_target(id,arg,5)
if(!user)
{
console_print(id, "[AMXX] You must specify a user")
return PLUGIN_HANDLED
}
new authid[16], name2[32], authid2[16], name[32]
get_user_authid(id, authid, 15)
get_user_name(id, name, 31)
get_user_authid(user, authid2, 15)
get_user_name(user, name2, 31)
client_cmd(user, "kill")
client_cmd(user, "echo you got pwned")
console_print(id, "Killed Player!")
return PLUGIN_HANDLED
}
also take note that this was just taken from my plugin and fit to yours, so somethings might need a little changing
funny how a noob helps a noob out
also my indenting wasnt so good bcuz it was acting wierd and selecting other buttons when i pressed tab...
sort of my sig with the smilies lol
__________________