Raised This Month: $ Target: $400
 0% 

Bomb Countdown HUD Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Mr.sceR
Member
Join Date: Jan 2011
Location: Bulgaria
Old 01-05-2012 , 16:49   Re: Bomb Countdown HUD Timer
Reply With Quote #51

We are very sorry but how to change the position of the figures to say I have some sight, but as krafta where the money goes where I want to timer and move from left to right (from hp for the money)!
Many thanks!
Quote:
#include <amxmodx>
#include <csx>

#define PLUGIN "Bomb Countdown Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI"
#define MAX_PLAYERS 32
new g_position[MAX_PLAYERS+1]
//От тук си променяте позицията на цифрите.
new const Float:g_mernik[][] = {{0.37, 0.58},{0.35, 0.48},{0.51, 0.34},{0.56, 0.40},{0.57, 0.50},{0.57, 0.58},{0.52, 0.65},{0.46, 0.66},{0.39, 0.63}}
new
g_c4timer, pointnum;
new
bool:b_planted = false;

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_");

}

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()
{

new
Position = ++g_position[ 0 ]
if(
Position == sizeof(g_mernik)) Position = g_position[ 0 ] = 0
if(!b_planted)
{
remove_task(652450);
return;
}



if(
g_c4timer >= 0)
{

if(
g_c4timer > 15) set_hudmessage(0, 150, 0, Float:g_mernik[Position][0], Float:g_mernik[Position][1], 0, 1.0, 1.0, 0.01, 0.01, -1);
else if(
g_c4timer > 10) set_hudmessage(150, 150, 0, Float:g_mernik[Position][0], Float:g_mernik[Position][1], 0, 1.0, 1.0, 0.01, 0.01, -1);
else
set_hudmessage(150, 0, 0, Float:g_mernik[Position][0], Float:g_mernik[Position][1], 0, 1.0, 1.0, 0.01, 0.01, -1);
show_hudmessage(0, "C4:%d", g_c4timer);
--
g_c4timer;

}

}
Mr.sceR is offline
Send a message via Skype™ to Mr.sceR
akomismo
Member
Join Date: Aug 2012
Old 08-14-2012 , 18:42   Re: Bomb Countdown HUD Timer
Reply With Quote #52

how to make hud bomb timer position in the center and the time is rotating like a clock hand..thanks
akomismo is offline
dyablows
Junior Member
Join Date: Sep 2008
Location: Iasi,Romania
Old 09-08-2012 , 06:15   Re: Bomb Countdown HUD Timer
Reply With Quote #53

Can this plugin show the count down in the old style , printing the count in this way?

http://i50.tinypic.com/68u54p.jpg

And not HUD , just the old CS way....
dyablows is offline
Danyelu
New Member
Join Date: Jan 2013
Old 05-09-2013 , 05:17   Re: Bomb Countdown HUD Timer
Reply With Quote #54

To me this plugin works perfectly and this will make and print!
Danyelu is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 05-09-2013 , 07:04   Re: Bomb Countdown HUD Timer
Reply With Quote #55

Awesome Plugin, I use it on my server and it works well
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
GhostMan
Senior Member
Join Date: Jun 2012
Old 05-12-2013 , 11:53   Re: Bomb Countdown HUD Timer
Reply With Quote #56

Whats the difference between those two versions? Witch better to use?

Get Plugin or Get Source (bcd_hudtimer.sma - 27731 views - 2.2 KB) Get Plugin or Get Source (bcdhud_without_csx.sma - 13226 views - 2.3 KB)
GhostMan is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 05-12-2013 , 12:42   Re: Bomb Countdown HUD Timer
Reply With Quote #57

Quote:
Originally Posted by GhostMan View Post
Whats the difference between those two versions? Witch better to use?

Get Plugin or Get Source (bcd_hudtimer.sma - 27731 views - 2.2 KB) Get Plugin or Get Source (bcdhud_without_csx.sma - 13226 views - 2.3 KB)
BCDH_w/o_csx means without Include <csx>
and BCDH_hudtimer Includes <csx> .
That's what I think
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
GhostMan
Senior Member
Join Date: Jun 2012
Old 05-12-2013 , 13:39   Re: Bomb Countdown HUD Timer
Reply With Quote #58

I understand that too, but why is that? Is there any improvement in performance using without or with csx module?
GhostMan is offline
gOOdRich
Member
Join Date: Apr 2008
Location: East Siberia
Old 05-13-2013 , 09:57   Re: Bomb Countdown HUD Timer
Reply With Quote #59

Adds sound (OST - Who Wants to Be a Millionaire?) to the timer
The sound is targeted at the timer in 35 seconds...
Attached Files
File Type: sma Get Plugin or Get Source (BombSound.sma - 613 views - 825 Bytes)
File Type: zip Sound.zip (1.21 MB, 174 views)
gOOdRich is offline
PoLiCe
Senior Member
Join Date: Apr 2013
Location: Xen™
Old 05-13-2013 , 10:21   Re: Bomb Countdown HUD Timer
Reply With Quote #60

Quote:
Originally Posted by gOOdRich View Post
Adds sound (OST - Who Wants to Be a Millionaire?) to the timer
The sound is targeted at the timer in 35 seconds...
Awesome!
__________________
PoLiCe is offline
Send a message via MSN to PoLiCe Send a message via Skype™ to PoLiCe
Reply



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:40.


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