AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Request for Bomb Countdown Hud (https://forums.alliedmods.net/showthread.php?t=325611)

impossible89 06-29-2020 10:53

Request for Bomb Countdown Hud
 
hello!

Can anyone make me such a timer be in the same position, color and inscription without changing the color, be only in that color from the beginning of the bet, until the explosion of the bomb

https://imgur.com/fbGZMqS

impossible89 06-29-2020 11:03

Re: Request for Bomb Countdown Hud
 
also if these sounds can be inserted into the code itself for
countdown


https://dox.abv.bg/download?id=21af405873# - Линк за сваляне

Supremache 06-29-2020 19:20

Re: Request for Bomb Countdown Hud
 
Quote:

Originally Posted by impossible89 (Post 2707821)
also if these sounds can be inserted into the code itself for
countdown


https://dox.abv.bg/download?id=21af405873# - Линк за сваляне

Try this:

PHP Code:

#include <amxmodx>
#include <csx>
 
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI" 
 
new g_c4timerpointnum;
new 
bool:b_planted false;

new 
g_msgsync;
 
new const 
g_c4Timer1[ ] = { "c4Timer/one.mp3" };
new const 
g_c4Timer2[ ] = { "c4Timer/two.mp3" };
new const 
g_c4Timer3[ ] = { "c4Timer/three.mp3" };
new const 
g_c4Timer4[ ] = { "c4Timer/four.mp3" };
new const 
g_c4Timer5[ ] = { "c4Timer/five.mp3" };
new const 
g_c4Timer6[ ] = { "c4Timer/six.mp3" };
new const 
g_c4Timer7[ ] = { "c4Timer/seven.mp3" };
new const 
g_c4Timer8[ ] = { "c4Timer/eight.mp3" };
new const 
g_c4Timer9[ ] = { "c4Timer/nine.mp3" };
new const 
g_c4Timer10[ ] = { "c4Timer/ten.mp3" };
 
public 
plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR);
 
    
pointnum get_cvar_pointer("mp_c4timer");
 
    
register_logevent("newRound"2"1=Round_Start");
    
register_logevent("endRound"2"1=Round_End");
    
register_logevent("endRound"2"1&Restart_Round_");
 
    
g_msgsync CreateHudSyncObj();
}
 
public 
newRound()
{
    
g_c4timer = -1;
    
remove_task(652450);
    
b_planted false;
}
 
public 
endRound()
{
    
g_c4timer = -1;
    
remove_task(652450);
}
 
public 
bomb_planted()
{
    
b_planted true;
    
g_c4timer get_pcvar_num(pointnum);
    
dispTime()
    
set_task(1.0"dispTime"652450""0"b");
}
 
public 
bomb_defused()
{
    if(
b_planted)
    {
        
remove_task(652450);
        
b_planted false;
    }
    
}
 
public 
bomb_explode()
{
    if(
b_planted)
    {
        
remove_task(652450);
        
b_planted false;
    }
    
}
 
public 
dispTime()
{   
    if(!
b_planted)
    {
        
remove_task(652450);
        return;
    }
        
 
    if(
g_c4timer >= 0)
    {
        if(
g_c4timer 10client_cmd(0"spk %s"g_c4Timer10);
        else if(
g_c4timer 9client_cmd(0"spk %s"g_c4Timer9);
        else if(
g_c4timer 8client_cmd(0"spk %s"g_c4Timer8);
        else if(
g_c4timer 7client_cmd(0"spk %s"g_c4Timer7);
        else if(
g_c4timer 6client_cmd(0"spk %s"g_c4Timer6);
        else if(
g_c4timer 8client_cmd(0"spk %s"g_c4Timer5);
        else if(
g_c4timer 4client_cmd(0"spk %s"g_c4Timer4);
        else if(
g_c4timer 3client_cmd(0"spk %s"g_c4Timer3);
        else if(
g_c4timer 2client_cmd(0"spk %s"g_c4Timer2);
        else if(
g_c4timer 1client_cmd(0"spk %s"g_c4Timer1);
        
        else 
set_hudmessage(2552550, -1.00.8001.01.00.010.01, -1);
        
ShowSyncHudMsg(0g_msgsync"EXPLOSION^n After %d secounds"g_c4timer);
 
        --
g_c4timer;
    }
  



impossible89 06-29-2020 19:33

Re: Request for Bomb Countdown Hud
 
shows errors when trying to compile

https://prnt.sc/t8s8ri

impossible89 06-29-2020 19:46

Re: Request for Bomb Countdown Hud
 
compiles the code the problem was in the coding UTF-8

impossible89 06-29-2020 19:55

Re: Request for Bomb Countdown Hud
 
only that I don't like this timer, I want it to be like in the picture above, where I sent maybe without the countdown
text only
ЕXPLOSION
After 35 seconds To be in such a position and color from the beginning of the bet to the explosion without changing its color

Supremache 06-29-2020 19:55

Re: Request for Bomb Countdown Hud
 
Quote:

Originally Posted by impossible89 (Post 2707897)
compiles the code the problem was in the coding UTF-8

There's not problem in plugin for compliering it

Supremache 06-29-2020 20:16

Re: Request for Bomb Countdown Hud
 
Quote:

Originally Posted by impossible89 (Post 2707898)
only that I don't like this timer, I want it to be like in the picture above, where I sent maybe without the countdown
text only
ЕXPLOSION
After 35 seconds To be in such a position and color from the beginning of the bet to the explosion without changing its color

I did the same of the picture!!
What you want ?

impossible89 06-30-2020 03:24

Re: Request for Bomb Countdown Hud
 
and you have edited your opinion

impossible89 06-30-2020 03:32

Re: Request for Bomb Countdown Hud
 
thank you!


All times are GMT -4. The time now is 05:14.

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