Raised This Month: $ Target: $400
 0% 

get_user_health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-30-2009 , 17:16   Re: get_user_health
Reply With Quote #10

and with that use a bool when you set the model so that it doesn't set every time health changes over 1000

PHP Code:
new bool:isHulk[33]
 
public 
fwHealth(id)
{
       static 
hp
 
       hp 
read_data(1)
 
       if(!
isHulk[id] && hp 1000)
       {
              
isHulk[id] = true
              
// the "set hulk" code
       
}
       else if(
isHulk[id] && hp 1000)
       {
              
isHulk[id] = false
              
// the "no more hulk" code
       
}

__________________
Hunter-Digital 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 13:58.


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