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

[Req] hudmessage countdown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HITLER
Member
Join Date: Jul 2018
Location: www
Old 08-04-2018 , 02:38   [Req] hudmessage countdown
Reply With Quote #1

how to make countdown for cooldown after check that zombie used his ability ?
PHP Code:
public Task_ShowHUD(task)
{    
    new 
id task TASKID_SHOWHUD
    
    
if(!is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
if(g_zombie[id] && InfectedClass[id] == 0)
    {
        new 
speed get_pcvar_num(cvar_hunter_speed)
        static 
health
        health 
get_user_health(id)
        
set_hudmessage(25515000.020.9706.01.10.00.0, -1)
new 
cooldown 10;
        
ShowSyncHudMsg(idg_hudsync "-=[Health: %d | Class: %s  ||  cooldown : %d ]=-"healthzombieclassnames[InfectedClass[id]], cooldown)
        
set_task(0.1"Task_ShowHUD"TASKID_SHOWHUD id)
    } 
i need just a simple example
HITLER is offline
Send a message via Skype™ to HITLER
 



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 08:55.


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