Raised This Month: $ Target: $400
 0% 

max hp amount


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-07-2014 , 12:45   Re: max hp amount
Reply With Quote #2

PHP Code:
public plugin_init()
{
register_event("Health""EventHealth""be""1>0");
}
public 
EventHealth(client)
{

currenthp=get_user_health(client)
if(
currenthp>g_maxhp[client])
{
set_user_health(clientg_maxhp[client])
}


took hp change detection from exolent

Last edited by aron9forever; 05-08-2014 at 07:27. Reason: credits
aron9forever 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 09:37.


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