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

Hud color for countdown


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 11-24-2021 , 06:34   Hud color for countdown
Reply With Quote #1

Hi
I use this method to change the color of the hood for CountDown
Can anyone offer a more efficient method?
PHP Code:
public task_CountDown()
{
    
g_iCountDown--
    new 
mins g_iCountDown/60secs g_iCountDown%60
    
if (g_iCountDown>=0)
    {
        switch(
g_iCountDown)                   
        {
            case 
0..10:
            {
                
set_dhudmessage(25500, -1.00.0601.00.80.40.1);
            }
            case 
11..30:
            {
                
set_dhudmessage(2552550, -1.00.0601.00.80.40.1);
            }
            default:
            {
                
set_dhudmessage(0255255, -1.00.0601.00.80.40.1);
            }
        }
        
show_dhudmessage(0"| %L : %d:%02d |"LANG_SERVER"BUILD_TIMER"minssecs);
    }

__________________

Last edited by amirwolf; 11-24-2021 at 14:43.
amirwolf is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-24-2021 , 12:59   Re: color hud
Reply With Quote #2

__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-24-2021 , 13:24   Re: color hud
Reply With Quote #3

Quote:
Originally Posted by Nutu_ View Post
All using this try it !
SHIFT0 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-24-2021 , 16:22   Re: Hud color for countdown
Reply With Quote #4

Code:
Amazing how 2 people can give answers that have nothing to do with what the author asked.
Now, going back to the question, I believe that there is no other method that will bring any benefit, so using it seems ok.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 11-25-2021 , 04:06   Re: Hud color for countdown
Reply With Quote #5

Quote:
Originally Posted by iceeedr View Post
Code:
Amazing how 2 people can give answers that have nothing to do with what the author asked.
Now, going back to the question, I believe that there is no other method that will bring any benefit, so using it seems ok.
Thank you for your answer
amirwolf is offline
Reply


Thread Tools
Display Modes

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 22:09.


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