Raised This Month: $ Target: $400
 0% 

No fall damage (Eliminates damage from falling!!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #31

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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode