Raised This Month: $ Target: $400
 0% 

remove task with get_gametime


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-25-2013 , 07:48   Re: remove task with get_gametime
Reply With Quote #1

Just use flag "a" (repeat) and set repeat time to 100 (or 99, i always forget which one) :

PHP Code:
const TASK_PLAYER_HEAL 15031;

HealPlayerid )
{
    
set_task(0.2"MinorPot"id TASK_PLAYER_HEAL__"a"100);
}

public 
MinorPotid )
{
    
id -= TASK_PLAYER_HEAL;
    if( 
is_user_alive(id) )
    {
        
set_user_health(idget_user_health(id) + 1);
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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:19.


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