AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Countdown Plugin in Dhud (https://forums.alliedmods.net/showthread.php?t=311668)

Sanjay Singh 10-28-2018 08:11

Countdown Plugin in Dhud
 
Need Simple Countdown Plugin in Dhud ( 10 Second)
10 9 8 7 6 5 4 3 2 1 Go Go Go

Mr Misw 10-28-2018 08:33

Re: Countdown Plugin in Dhud
 
Try
PHP Code:

#include < amxmodx > 
#include < amxmisc >

enum(+=1000)
{
    
TASK_HUD
}


public 
plugin_init()
{
    
register_plugin
    
(
        .
plugin_name "Dhud Live Message",
        .
version "1.0",
        .
author "ScrewedUP"
    
)
    
    
register_cvar"sup_dhudtimer""1.0" FCVAR_SERVER|FCVAR_SPONLY )
    
    
register_clcmd("say /live" "Show_Live_Message")
    
}

public 
Show_Live_Message()
{
    
    
set_task1.0 ,"Show_Message",_,_,_,"a",10 )
        
}

public 
Show_Message()
{
    
    static 
live_time 10;
    
    
set_dhudmessage(random_num(0,255), random_num(0,255) , random_num(0,255) , 0.310.3301.01.0)
    
show_dhudmessage,  "-=[ %d ]=-" live_time-- )
    
    if ( 
live_time == )
    {
        
remove_task(TASK_HUD)
        
set_dhudmessage(4242255, -1.0, -1.002.06.00.80.8)
        
show_dhudmessage,  "GO    ||    GO    ||    GO" live_time-- )
    }
    
    




All times are GMT -4. The time now is 03:39.

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