[Tutorial] "Kick gun"
#6

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 ==.
Reply


Messages In This Thread
"Kick gun" - by Cell_ - 08.05.2013, 07:26
Re: "Kick gun" - by Yashas - 08.05.2013, 13:04
Re: "Kick gun" - by nGen.SoNNy - 08.05.2013, 13:46
Re: "Kick gun" - by Pottus - 08.05.2013, 18:56
Re: "Kick gun" - by Cell_ - 13.05.2013, 18:14
Re: "Kick gun" - by [FSaF]Jarno - 13.05.2013, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)