Okay yeah, first time with events and i dont know what im doing wrong. Like when i kill who evers id is passed into PlayerCT it doesnt reg it.
Code:
public hook_DeathMsg() {
new Victim = read_data(2) //get the second message parameter
if(g_Dueling == 1) {
if(is_user_dueling(Victim)) {
duelEND(Victim)
}
}
return PLUGIN_CONTINUE
}
/* returns wether or not if the user is dueling */
public is_user_dueling(id)
{
if(g_Dueling == 1) {
if(g_PlayerCT == id || g_PlayerT == id)
return 1
}
return 0
}
__________________