Raised This Month: $ Target: $400
 0% 

Set_user_health


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-06-2010 , 20:41   Re: Set_user_health
Reply With Quote #1

PHP Code:
public Event_CurWeapon(id)
{
    new 
clipammoweapon get_user_weapon(id,clip,ammo);
    if(
weapon == CSW_KNIFE) { 
        
set_task(get_pcvar_float(gtime), "hp"id)
    } else {
        
remove_task(id)
    }

Do you think that'd work if he removed the task if it wasn't a knife? I don't think it would matter if that task is not already going.
RedRobster is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-06-2010 , 21:54   Re: Set_user_health
Reply With Quote #2

Quote:
Originally Posted by RedRobster View Post
Do you think that'd work if he removed the task if it wasn't a knife? I don't think it would matter if that task is not already going.
I think that might work.
__________________
fysiks 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 05:20.


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