The script is SO easy, but i have problems with it that i Can't solve...
Code:
Code:
public death()
{
new killed_player = read_data(2)
new killed_name[32]
get_user_name(killed_player,killed_name,31)
if(get_pcvar_num(killed) == 1) {
server_cmd("amx_ban %d %s %s", get_pcvar_num(bantime), killed_name, get_pcvar_num(reason))
}
else if(get_pcvar_num(killed) == 2) {
server_cmd("amx_kick %s %s", killed_name, get_pcvar_num(reason))
}
return PLUGIN_CONTINUE
}
It doesn't do anything. Only in server console it shows:
Client With That Name Or Userid Not Found
I tried almost every way but it still doesn't work.
No errors Compiling.
Can someone help me?
Thanks