AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] its possible to count days (https://forums.alliedmods.net/showthread.php?t=251508)

ghost95v 11-14-2014 10:26

[HELP] its possible to count days
 
Hello, i would like to know how can i countdown days 1 by 1 to set a task ( for some days ) ? Thank you :)

YamiKaitou 11-14-2014 10:29

Re: [HELP] its possible to count days
 
Your task will never run that long unless your server never changes maps and never restarts. Otherwise, what exactly are you trying to do

ghost95v 11-14-2014 10:51

Re: [HELP] its possible to count days
 
im wondering if i can change a cvar or to do a specific function for some days, example to change a specific cvar in a specific date or in weekend

YamiKaitou 11-14-2014 11:02

Re: [HELP] its possible to count days
 
Then use get_time to retrieve the date or whatever and then depending on the value, do whatever you need to do

ghost95v 11-14-2014 11:35

Re: [HELP] its possible to count days
 
Yes, can i have an simple example to get the right date / month / year and then "if is a specified date / month / year do something" ?

HamletEagle 11-14-2014 11:41

Re: [HELP] its possible to count days
 
Quote:

Originally Posted by ghost95v (Post 2224154)
Yes, can i have an simple example to get the right date / month / year and then "if is a specified date / month / year do something" ?

Lol, check the wiki.

YamiKaitou 11-14-2014 11:43

Re: [HELP] its possible to count days
 
EDIT: http://amxmodx.org/api/amxmodx/get_time


All times are GMT -4. The time now is 17:37.

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