Raised This Month: $ Target: $400
 0% 

Healing always to 100 hp no matter what I change. Need 255.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-31-2009 , 00:54   Re: Healing always to 100 hp no matter what I change. Need 255.
Reply With Quote #7

Code:
actionHeal(id) {     if ( !( halflife_time() >= gfNextHealTime[id] ) ) return PLUGIN_HANDLED;         new iHealth = get_user_health( id );     if( iHealth >= 255 || iHealth == 100 ) return PLUGIN_HANDLED;         if( iHealth < 100 )     {         iHealth = min( 100, iHealth + floatround(get_cvar_float("bm_healamount"), floatround_floor) );     }     else //if( iHealth > 100 )     {         iHealth++;         // no need to check for 255 maximum, since it is only by 1     }         set_user_health(id, iHealth);         gfNextHealTime[id] = halflife_time() + 0.5;         return PLUGIN_HANDLED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-01-2009 at 15:11.
Exolent[jNr] 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 18:24.


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