Raised This Month: $ Target: $400
 0% 

HUD Countdown Timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
t3hNox
Senior Member
Join Date: Oct 2009
Old 06-20-2010 , 10:43   HUD Countdown Timer
Reply With Quote #1

Hi.
Is there any tutorial where is shown how to make a simple HUD countdown (with set_hudmessage and ShowSyncHudMsg)? I'd like to make a simple countdown timer and when it reaches 0 some function is called. The only possible way I can think of is with set_tasks which, I believe, is a bad way how to make such timer.
t3hNox is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-20-2010 , 12:09   Re: HUD Countdown Timer
Reply With Quote #2

Look at my WarmUP Mod
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-20-2010 , 12:26   Re: HUD Countdown Timer
Reply With Quote #3

I don't think using task is a bad method for a countdown.... maybe is a bad method for a timer, yes but not for a simple countdown, i think.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 06-20-2010 , 13:47   Re: HUD Countdown Timer
Reply With Quote #4

You could take a look at the Base Builder mod as well. He has a countdown on that.
__________________
Hi.
Kreation is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-20-2010 , 13:49   Re: HUD Countdown Timer
Reply With Quote #5

https://forums.alliedmods.net/showth...ighlight=timer
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 06-20-2010 , 13:56   Re: HUD Countdown Timer
Reply With Quote #6

Thanks everyone. It seems that wrecked_ posted a more efficient method of this HUD countdown timer. Unfortunately I have already coded that timer using the way that is used in WarmUP mod.
Anyways, problem solved
t3hNox is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-20-2010 , 16:24   Re: HUD Countdown Timer
Reply With Quote #7

But:

Code:
set_task(1.0, "Hello"); public Hello() {     // stuff         set_task(1.0, "Hello"); }

Code:
set_task(1.0, "Hello", .flags="b"); public Hello() {     // stuff }

Code:
set_task(1.0, "Hello", .flags="a", TIMES); public Hello() {     // stuff }

Are not the same things? Or some methods are more efficient than others?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 14:50.


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