Code:
if (!var_hptogive)
return // Something went wrong, cancel.
You didn't understand this, in case you would give HP only for HS, and not for normal kills, cvar amx_hponfrag_health would be set to 0, then var_hptogive would be 0, so this -> if (!var_hptogive) would match.
I don't understand why you set both hp cvars to 25, in that case you don't have to check if it's a HS or not ;)
Quote:
Originally Posted by TheLinxSWE
You should release that! I´m just off to test it
|
http://forums.alliedmods.net/showthread.php?t=29196