Raised This Month: $32 Target: $400
 8% 

Bomb Countdown HUD Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related       
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-16-2007 , 14:31   Bomb Countdown HUD Timer
Reply With Quote #1

Bomb Countdown HUD Timer v0.2


Plugin Details:


With this plugin enabled, you can see an colored Hud Message with the c4 time left, until explode.
Remeber : if until explode remains less than 8 seconds, hudmessage color will be red, if > 7 will be yellow and > 13 will be green.


Required Modules:
- CSX


Credits:
- Emp` for various indicates
- Alka for full tests

* Changelog:
0.1 -> 0.2: - Fixed Events problems
- Pcvars
- Fixed any bug on plugin

Also see screenshots


Attached Thumbnails
Click image for larger version

Name:	screenshot_1.JPG
Views:	114494
Size:	11.7 KB
ID:	13913   Click image for larger version

Name:	screenshot_2.JPG
Views:	24905
Size:	10.4 KB
ID:	13914  
Attached Files
File Type: sma Get Plugin or Get Source (bcd_hudtimer.sma - 44468 views - 2.2 KB)
File Type: sma Get Plugin or Get Source (bcdhud_without_csx.sma - 20618 views - 2.3 KB)

Last edited by SAMURAI16; 03-04-2007 at 12:28.
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-16-2007 , 14:40   Re: Bomb CoutHUD Timer
Reply With Quote #2

Gj man! Thanks for this useful plugin! + Karma ;)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-16-2007 , 14:47   Re: Bomb CoutHUD Timer
Reply With Quote #3

I suggest you use the following logevents to check for bomb actions. This will save you from needing the csx module and will be more accurate.
Code:
    register_logevent("LogEvent_BombPlanted" , 3 , "2=Planted_The_Bomb");     register_logevent("LogEvent_BombDefused" , 3 , "2=Defused_The_Bomb");     register_logevent("LogEvent_BombExplosion" , 6 , "3=Target_Bombed");

For your use you could register both defused and bombed to the same calling function. If you want the id of the player who planted,defused you can use VEN's get_loguser_id() function. The Target_Bombed doesn't give a player id with it, you need to use the planted one for that.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-16-2007 , 14:52   Re: Bomb CoutHUD Timer
Reply With Quote #4

i updated
But : What you what to say about bomb_planted public . Now it's with logevent . And for what is required to get_loguser_id, for check what ? because i don't understand
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-16-2007 , 15:29   Re: Bomb CoutHUD Timer
Reply With Quote #5

now it's not working well! It's shows 2 timers one with -2 -3 -4 -4 and one with right time!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 02-16-2007 , 16:02   Re: Bomb CoutHUD Timer
Reply With Quote #6

what the?

Last edited by Xanimos; 02-17-2007 at 11:24. Reason: huh?
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
manchimocyrus
Member
Join Date: Nov 2006
Location: Vitan
Old 02-17-2007 , 01:13   Re: Bomb CoutHUD Timer
Reply With Quote #7

Thanks.
manchimocyrus is offline
manchimocyrus
Member
Join Date: Nov 2006
Location: Vitan
Old 02-17-2007 , 01:29   Re: Bomb CoutHUD Timer
Reply With Quote #8

Now it's not working well.
It's shows 45.........1 and -1........-44
manchimocyrus is offline
Morpheus759
BANNED
Join Date: Feb 2007
Location: Poland
Old 02-17-2007 , 02:47   Re: Bomb CoutHUD Timer
Reply With Quote #9

Dont work
Morpheus759 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-17-2007 , 03:57   Re: Bomb CoutHUD Timer
Reply With Quote #10

Have a look at amx2006.3 miscstats.sma if you have some problems, krotal already coded that ;)
ConnorMcLeod is offline
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 09:15.


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