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

downcount (hud or motd)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-18-2018 , 15:37   downcount (hud or motd)
Reply With Quote #1

its possible to make a downcount for days/minutes/seconds? into a dhudmessage or motd,
which one would be eazier? i tried to make motd with a downcount from a website but doesnt work, so i guess a hudmessages will be better, how can i do it? start a live downcount with days/minutes/seconds
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-18-2018 , 15:45   Re: downcount (hud or motd)
Reply With Quote #2

Simply calculate the time for your countdown and then show it in a HUD message. There are many threads that show how to use HUD messages.

Doing a countdown in an MOTD shouldn't be hard, you probably need to use Javascript to do it (assuming the Javascript functions used are supported by the MOTD browser).
__________________
fysiks is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-18-2018 , 16:35   Re: downcount (hud or motd)
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Simply calculate the time for your countdown and then show it in a HUD message. There are many threads that show how to use HUD messages.

Doing a countdown in an MOTD shouldn't be hard, you probably need to use Javascript to do it (assuming the Javascript functions used are supported by the MOTD browser).
o yeah, as a beginner i really dont know to do it, i can add hud messages but i dont know how to make the downcount correctly and to work, so any help would be great
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-18-2018 , 23:02   Re: downcount (hud or motd)
Reply With Quote #4

I don't understand what you're having issues with. A countdown is simply showing the amount of time until a specific milestone (date/time). You say you can show HUD messages so there doesn't seem to be anything else needed.

If you are still having issues, you'll need to post your code so that we can see what exactly you're having issues with.
__________________
fysiks is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 11-19-2018 , 00:08   Re: downcount (hud or motd)
Reply With Quote #5

you can try this plugin

https://forums.alliedmods.net/showthread.php?p=68532
tarsisd2 is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 11-19-2018 , 12:30   Re: downcount (hud or motd)
Reply With Quote #6

Use SyncHud which refreshes old hud's info with upcoming hud message
And set a Task for ( 1 ) second unless specific time is reached to show this synchud

Its easy right ?
If you are having issues u can search everything i told you
instinctpt1 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-19-2018 , 13:21   Re: downcount (hud or motd)
Reply With Quote #7

Quote:
Originally Posted by tarsisd2 View Post
i use it, thanks, exactly what i wanted
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 11-19-2018 , 15:07   Re: downcount (hud or motd)
Reply With Quote #8

Quote:
Originally Posted by instinctpt1 View Post
Use SyncHud which refreshes old hud's info with upcoming hud message
And set a Task for ( 1 ) second unless specific time is reached to show this synchud

Its easy right ?
If you are having issues u can search everything i told you
you guys mistake request section for scripting section, this section you can't expect the user to be able to do such tasks.

i'm glad the plugin worked for you
tarsisd2 is offline
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 04:20.


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