View Single Post
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 11-01-2010 , 17:54   Re: Regeneration not stacking (How?)
Reply With Quote #3

wat, you're the one who taught me how to use tasks with the Darth Maul you sent me. Should I replace index with id in the hphealing thing and remove index from the parantheseline? Damn, I suck at explaining things, but I mean like this:

PHP Code:
public taskRegen(id)
{
    if(!
sh_is_active() || !is_user_alive(id) )
        return
    
    
sh_add_hp(idget_pcvar_num(gPcvarHpRegen) )
    
set_user_armor(idmin(userarmor get_pcvar_num(pcvarApRegen), sh_get_max_ap(id)))

Or are you on about something else?
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline