Raised This Month: $ Target: $400
 0% 

[ZP][Addon] No fall damage for zombies


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 05-06-2009 , 20:40   Re: [ZP][Addon] No fall damage for zombies
Reply With Quote #2

Quote:
Originally Posted by Sn!ff3r View Post
Next simple plugin, that disables fall damage for all zombies.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "No fall damage for zombies"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

#define DMG_FALL (1<<5)

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(!(
damage_type DMG_FALL))
        return 
HAM_IGNORED
    
    
if(!zp_get_user_zombie(victim))
        return 
HAM_IGNORED
    
    
return HAM_SUPERCEDE

Another good plugin by Sniffer
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS 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 16:57.


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