Raised This Month: $ Target: $400
 0% 

HP regenerator


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-03-2014 , 12:02   Re: HP regenerator
Reply With Quote #4

This is the other version.
PHP Code:
#include <amxmodx>
#include <fun>

public plugin_init()  
{
    
register_plugin("Health Regenerator""1.0""AUTHOR")
    
    
register_clcmd("say /reg""iRegenerate")
    
register_clcmd("say_team /reg""iRegenerate")
}

public 
iRegenerate(id)
{
    if(
is_user_alive(id))
    {
        new 
iHealth get_user_health(id)
        
        if(
iHealth >= 100 || iHealth >= 20)
        {
            
set_user_health(idiHealth 40)
        }   
    }


Last edited by zmd94; 11-03-2014 at 12:04.
zmd94 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 17:31.


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