PHP Code:
public fw_PlayerKilled(victim, attacker, shouldgib) {
static selfkill
selfkill = (victim == attacker || !is_user_valid_connected(attacker)) ? true : false
if (selfkill) {
return;
}
if ( attacker )
g_paintpacks[attacker] += get_pcvar_num(g_killreward)
}
when I kill my self , it will block adding the paintpacks <-- thats right..
but when I kill somebody , the paintpacks wont add..
where's the problem of the code?