Raised This Month: $ Target: $400
 0% 

countdown


Post New Thread Reply   
 
Thread Tools Display Modes
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-12-2009 , 03:34   Re: countdown
Reply With Quote #11

Nice idea, but i have a question :

imagin on new year, on 1.1.XX - 00:00 , will be a a hudmessage displayed like : "happy new year" .... what about delay? i mean will this message showed only for xx Sec.?

i think its better that u could add an Cvar to control the hudmessage delay howlong should the message be displayed.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-29-2009 , 16:30   Re: countdown
Reply With Quote #12

1. Use pcvars.

2.
Code:
format(count_time,31,"NowTime:%s/%s/%s ^n %s:%s:%s",g_Year,g_Month,g_Day,g_Hour,g_Minute,g_Second); set_hudmessage(255, 255, 255, -1.0, 0.05, 0, 1.0, 1.0, 0.1, 0.2,2); show_hudmessage(0,count_time);     format(remain_time,63,"Remaining: %d Days %2d:%2d:%2d",el_days,re_Hour,re_Minute,re_Second); set_hudmessage(255, 255, 255, -1.0, 0.12, 0, 1.0, 1.0, 0.1, 0.2,3); show_hudmessage(0,remain_time);
Format the message with show_hudmessage():
Code:
set_hudmessage(255, 255, 255, -1.0, 0.05, 0, 1.0, 1.0, 0.1, 0.2,2); show_hudmessage(0,"NowTime:%s/%s/%s ^n %s:%s:%s",g_Year,g_Month,g_Day,g_Hour,g_Minute,g_Second);     set_hudmessage(255, 255, 255, -1.0, 0.12, 0, 1.0, 1.0, 0.1, 0.2,3); show_hudmessage(0,"Remaining: %d Days %2d:%2d:%2d",el_days,re_Hour,re_Minute,re_Second);

Unapproved until changes have been made.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 20:22.


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