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

Request for Bomb Countdown Hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
impossible89
Member
Join Date: Jun 2020
Old 06-29-2020 , 10:53   Request for Bomb Countdown Hud
Reply With Quote #1

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 is offline
impossible89
Member
Join Date: Jun 2020
Old 06-29-2020 , 11:03   Re: Request for Bomb Countdown Hud
Reply With Quote #2

also if these sounds can be inserted into the code itself for
countdown


https://dox.abv.bg/download?id=21af405873# - Линк за сваляне
impossible89 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-29-2020 , 19:20   Re: Request for Bomb Countdown Hud
Reply With Quote #3

Quote:
Originally Posted by impossible89 View Post
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;
    }
  


Last edited by Supremache; 06-29-2020 at 19:22.
Supremache is offline
impossible89
Member
Join Date: Jun 2020
Old 06-29-2020 , 19:33   Re: Request for Bomb Countdown Hud
Reply With Quote #4

shows errors when trying to compile

https://prnt.sc/t8s8ri
impossible89 is offline
impossible89
Member
Join Date: Jun 2020
Old 06-29-2020 , 19:46   Re: Request for Bomb Countdown Hud
Reply With Quote #5

compiles the code the problem was in the coding UTF-8
impossible89 is offline
impossible89
Member
Join Date: Jun 2020
Old 06-29-2020 , 19:55   Re: Request for Bomb Countdown Hud
Reply With Quote #6

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

Last edited by impossible89; 06-29-2020 at 19:58.
impossible89 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-29-2020 , 19:55   Re: Request for Bomb Countdown Hud
Reply With Quote #7

Quote:
Originally Posted by impossible89 View Post
compiles the code the problem was in the coding UTF-8
There's not problem in plugin for compliering it
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 06-29-2020 , 20:16   Re: Request for Bomb Countdown Hud
Reply With Quote #8

Quote:
Originally Posted by impossible89 View Post
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 ?
Supremache is offline
impossible89
Member
Join Date: Jun 2020
Old 06-30-2020 , 03:24   Re: Request for Bomb Countdown Hud
Reply With Quote #9

and you have edited your opinion

Last edited by impossible89; 06-30-2020 at 03:43.
impossible89 is offline
impossible89
Member
Join Date: Jun 2020
Old 06-30-2020 , 03:32   Re: Request for Bomb Countdown Hud
Reply With Quote #10

thank you!

Last edited by impossible89; 06-30-2020 at 03:44.
impossible89 is offline
Old 06-30-2020, 06:31
impossible89
This message has been deleted by impossible89.
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 06:11.


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