24.03.2014, 03:10
Your code is checking if killerid and playerid are the same. Observe the death list below.

You can see that for the first case (suicide), there's no killer for playerid, not even playerid itself. For nonexistent killers, you need to check if killerid is equal to INVALID_PLAYER_ID.

You can see that for the first case (suicide), there's no killer for playerid, not even playerid itself. For nonexistent killers, you need to check if killerid is equal to INVALID_PLAYER_ID.