13.05.2013, 18:23
I found a little typo in the code:
if(issuerid != INVALID_PLAYER_ID) // Check if the 'issureid' isn't an invalid player.
return 1; // Letting the script return back and not execute the upcoming code.
This means, that if the player took damage from a player, the following code will not be executed, wich is the exact opposite of what you want, because "issuerid" will be INVALID_PLAYER_ID if the damage was self-inflicted (falling, explosives, etc.). Change it to ==.
if(issuerid != INVALID_PLAYER_ID) // Check if the 'issureid' isn't an invalid player.
return 1; // Letting the script return back and not execute the upcoming code.
This means, that if the player took damage from a player, the following code will not be executed, wich is the exact opposite of what you want, because "issuerid" will be INVALID_PLAYER_ID if the damage was self-inflicted (falling, explosives, etc.). Change it to ==.