Raised This Month: $ Target: $400
 0% 

Making a Cool Down


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KillLikoe
BANNED
Join Date: Nov 2010
Location: Paraguay
Old 11-02-2011 , 14:49   Re: Making a Cool Down
Reply With Quote #6

this can also work right?
PHP Code:
 public give_hability(id)
{
    static 
time_remain;
    
time_remain 20
    
    Give_Hability
[id] = 1
    set_hudmessage
(02552000.310.2410.021.00.010.110); 
    
show_hudmessage(0"%d"time_remain);
    --
time_remain
        
        
    
if(time_remain >= 1)
    {
        
set_task(1.0"remove_hability"id)
    }
        
    return 
PLUGIN_HANDLED
}
public 
remove_hability(id)
{
    
Give_Hability[id] = 0
    set_task
(120.0"give_hability"id)
    return 
PLUGIN_HANDLED;

KillLikoe 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 14:25.


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