View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-25-2007 , 10:50   Re: [FUN] Player out of range (0)
Reply With Quote #7

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 View Post
You should release that! I´m just off to test it
http://forums.alliedmods.net/showthread.php?t=29196

Last edited by ConnorMcLeod; 10-25-2007 at 11:49.
ConnorMcLeod is offline