Raised This Month: $ Target: $400
 0% 

[ZP][Addon] No fall damage for zombies


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 05-06-2009 , 18:39   [ZP][Addon] No fall damage for zombies
Reply With Quote #1

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

Attached Files
File Type: sma Get Plugin or Get Source (zp_nofalldamage.sma - 4087 views - 611 Bytes)
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
 


Thread Tools
Display Modes

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