Thread: Health Restore
View Single Post
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-26-2011 , 10:32   Re: Health Restore
Reply With Quote #2

Try is:

PHP Code:
#include <amxmodx>
#include <fun>

public plugin_init()
{
    
register_plugin("Restore Damage""0.1""kramesa")
    
register_clcmd("say /restore-health""Restore_Damage")
}
public 
Restore_Damage(id)
{    
    if(
get_user_health(id) == 100)
        
client_print(idprint_chat"Your life already is 100")
    
    if(
get_user_health(id) < 100)
        
Life(id)
}

public 
Life(id)
{
    
set_user_health(id100)
    
client_print(idprint_chat"Your life changed to 100")

__________________

Last edited by kramesa; 11-26-2011 at 10:59.
kramesa is offline