Quote:
Originally Posted by OciXCrom
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(iVictim, iInflictor, iAttacker, Float:fDamage, iBits) 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.
__________________