Raised This Month: $ Target: $400
 0% 

Added hp not GIVE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-11-2010 , 06:44   Re: Added hp not GIVE
Reply With Quote #7

Use this stock :

Add_User_Hps(id, 15)

PHP Code:
Add_User_Hps(idHpsMaxHps=100)
{
    if( !
is_user_alive(id) )
    {
        return 
0
    
}

    new 
iNewHealth

    
if( MaxHps >= )
    {
        if( 
MaxHps == )
        {
            
MaxHps pev(idpev_max_health)
        }
        
iNewHealth min(get_user_health(id) + HpsMaxHps)
    }
    else
    {
        
iNewHealth =get_user_health(id) + Hps
    
}

    
set_user_health(idiNewHealth)

    return 
1

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 08:37.


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