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

Triggering a plugin at certain times of the week?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Remy Lebeau
Senior Member
Join Date: Dec 2009
Location: Sydney, Australia
Old 09-26-2014 , 22:12   Triggering a plugin at certain times of the week?
Reply With Quote #1

Hi all,

I'm wanting to setup a weekly challenge on my server, that needs to reset the values for the previous week's efforts.

I'm struggling right at the start, trying to work out a way to get a sourcemod plugin do stuff when I want it.

Can someone help me parse the interaction between GetTime() and FormatTime(), and what I then have to compare it to? Say I wanted to trigger something every Friday at 7pm.

Would I need to setup a repeating timer and do a check ?

Help appreciated!
Remy Lebeau is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-26-2014 , 22:31   Re: Triggering a plugin at certain times of the week?
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=60046

This may help you out.
__________________
ddhoward is offline
sheo
SourceMod Donor
Join Date: Jul 2013
Location: Russia, Moscow
Old 09-27-2014 , 01:39   Re: Triggering a plugin at certain times of the week?
Reply With Quote #3

Quote:
Originally Posted by Remy Lebeau View Post
Would I need to setup a repeating timer and do a check ?
Yes, you should continuously check for server time using GetTime() and FormatTime()
__________________
sheo 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 06:24.


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