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

[ANY] Days to New Year


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
6842
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Show days elapsed to the New Year
    Old 12-03-2019 , 13:00   [ANY] Days to New Year
    Reply With Quote #1

    Description:
    Show days (including hours, minutes, seconds) elapsed to the New Year

    Note: this plugin is client's local time aware. Read requirements carefully!
    Settings (ConVars):
    - "sm_newyear_days_delay" - def.: 17 - How many seconds to wait to display message after trigger raised
    - "sm_newyear_days_onjoin" - def.: 1 - Show message on client join first time (1 - Yes, 0 - No)
    - "sm_newyear_days_onroundstart" - def.: 0 - Show message on round start (1 - Yes, 0 - No)
    // Left 4 dead only:
    - "sm_newyear_days_onfinalewin" - def.: 1 - Show message when team wins the finale (1 - Yes, 0 - No)
    Requirements:
    - GeoIP v2 by Accelerator
    https://forums.alliedmods.net/showthread.php?t=311477

    - TimeZone API by Accelerator
    https://forums.alliedmods.net/showthread.php?t=311533

    Warning: after installing GeoIP v2,
    you should recompile ALL plugins that used original geoip include,
    otherwise you'll receive very unusual server behaviour.
    Installation:
    - Follow above requirements
    - compile plugin with new geoip.inc and tz.inc
    - copy l4d_DaysToNewYear.smx to addons/sourcemod/plugins
    - copy days_to_new_year.phrases.txt to addons/sourcemod/translations
    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: txt days_to_new_year.phrases.txt (237 Bytes, 307 views)
    File Type: sp Get Plugin or Get Source (l4d_DaysToNewYear.sp - 289 views - 6.3 KB)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 04-15-2021 at 08:54.
    Dragokas is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-04-2019 , 07:55   Re: [ANY] Days to New Year
    Reply With Quote #2

    1.1
    Fixed negative number of seconds is displayed when countdown timer reach zero (Left 4 dead).
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 12-04-2019 , 14:53   Re: [ANY] Days to New Year
    Reply With Quote #3

    Hey Dragokas, nice contribution,

    As a suggestion for a new version, you can add some new features like:

    - Add a welcome message phrase in the first X days of the year.
    So every time someone enters the first X days of the year, they get a message. for example: "Happy New Year! We wish you an amazing [YEAR]"

    - Add a countdown before the New Year (for example: 1 minute before the New Year starts sending a countdown message "New Year coming in 59 seconds!"

    Then you might be able to convert this plug-in to some kind of configurable holiday plug-in, in the future.

    Note: I hope everyone is enjoying the new year with their families, but sometimes people end up playing.
    __________________
    Marttt is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-05-2019 , 00:53   Re: [ANY] Days to New Year
    Reply With Quote #4

    Thanks, I will think about that.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    LividBunny
    Member
    Join Date: Mar 2021
    Old 11-26-2022 , 07:17   Re: [ANY] Days to New Year
    Reply With Quote #5

    I'd like to make this work but the Timezone API is stalling me.
    Any chance of a "detailed" instruction?
    LividBunny is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 11-26-2022 , 14:23   Re: [ANY] Days to New Year
    Reply With Quote #6

    Ask TimeZone API author.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas 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:55.


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