Raised This Month: $ Target: $400
 0% 

un-killing Players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 06-29-2007 , 14:51   Re: un-killing Players
Reply With Quote #2

You can only do this with the Ham Sandwich Module.

Here's an example:

Code:
#include <amxmodx> #include <hamsandwich> #define PLUGIN "Damage Half" #define VERSION "1.0" #define AUTHOR "stupok69" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         RegisterHam(Ham_TakeDamage, "player", "player_hurt") } public player_hurt(this, idinflictor, idattacker, Float:damage, damagebits) {     if(is_user_alive(idattacker))     {         damage *= 0.5 //half damage                 ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, damage, damagebits)         return HAM_SUPERCEDE     }         return HAM_IGNORED }
stupok 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 21:25.


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