 |
|
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
|

05-06-2009
, 20:40
Re: [ZP][Addon] No fall damage for zombies
|
#2
|
Quote:
Originally Posted by Sn!ff3r
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(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage") }
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_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
You're right Metalicross
|
|
|
|
|