Code:
register_message(get_user_msgid("DeathMsg"), "death_check")
public death_check(msg_id, msg_dest, msg_entity)
{
new killer = get_msg_arg_int(1)
new victim = get_msg_arg_int(2)
if(killer == 0 || killer == victim || killer > 32) //first argument is the killer, 0 if worldspawn
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}
Alright I took some time to test it, and here's the code that works. This catches players falling, blowing themselves up, using kill to commit suicide and using team switching to commit suicide.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My
logevent plugin