Raised This Month: $51 Target: $400
 12% 

cs_set_user_health?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 04-03-2010 , 14:36   cs_set_user_health?
Reply With Quote #1

Umm not sure if its
cs_set_user_health

but im trying to look for something that lowers some ones health to "25" Not Right away but something that takes away health all the way to 25 every 1 second
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-03-2010 , 14:41   Re: cs_set_user_health?
Reply With Quote #2

PHP Code:
set_task(1.0"Lower_Health_To_25"id__"b")

public 
Lower_Health_To_25id )
{
    if( 
is_user_alive(id) )
    {
        new 
iHealth get_user_health(id)
        if( 
iHealth 25 )
        {
            
set_user_health(id, --iHealth)
        }
        else
        {
            
remove_task(id)
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
infek
Senior Member
Join Date: May 2009
Location: Behind you
Old 04-03-2010 , 14:50   Re: cs_set_user_health?
Reply With Quote #3

k thanks
__________________
"Domo Arigato, Mr. Roboto!"
PM me if you want to know a secret
infek is offline
Reply



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 16:32.


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