View Single Post
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-29-2017 , 14:39   Re: No fall damage (Eliminates damage from falling!!)
Reply With Quote #30

Quote:
Originally Posted by OciXCrom View Post
Why are all of those complications necessary? This works just fine:

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define DMG_FALL (1<<5)

public plugin_init()
{
    
register_plugin("No Fall Damage""1.0""OciXCrom")
    
RegisterHam(Ham_TakeDamage"player""OnTakeDamagePre"0)
}

public 
OnTakeDamagePre(iVictimiInflictoriAttackerFloat:fDamageiBits)
    return 
iBits DMG_FALL HAM_SUPERCEDE HAM_IGNORED 
This was made when HamSandwich wasn't available, pretty much like every old plugin, this one is extremely overcomplicated.

I'm willing to see a re-estructuration of the entire AMXX plugin section, there are A LOT of obsolete plugins and yet they are approved, while the current approval requirements are beyond ridiculous, making actually useful plugins sit in Submissions, never to see the light.
__________________

Last edited by gabuch2; 05-29-2017 at 14:43. Reason: Forgot to write my message lol
gabuch2 is offline