Raised This Month: $51 Target: $400
 12% 

Health Bonus!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 03-12-2010 , 13:59   Health Bonus!
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fun>
 
#define HEALTH_BONUS 15
#define HEALTH_MAX 100
 
public plugin_init()
        
register_event("DeathMsg""DeathMsg""a""1>0");
 
public 
DeathMsg()
{
        new 
Killer read_data);
        
        if( 
Killer == read_data) )
                return;
        
        new 
Health get_user_health(Killer);
 
        if (
Health 100)
                
set_user_healthKillerminHealth HEALTH_BONUSHEALTH_MAX ) );

I use this plugin for health bonuses.. When player kills someone he gets health.. But there is one thing.. When you suicide, players stucks and don't spawn any more until they reconnect.. Can you fix this?
__________________
dj_freeze is offline
Send a message via Skype™ to dj_freeze
 



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 22:30.


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