Forum

> > CS2D > Scripts > Save a global value!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Save a global value!

5 replies
To the start Previous 1 Next To the start

old Save a global value!

minos
User Off Offline

Quote
Hello,
is there any way to save a global value for the server, for example the value is time then if the time >= 43800 minutes (a month) then time = 0 , what i want is to save this time so no matter when i restart the server the time won't be reset to
0 but it will continue counting.
Regards,

old Re: Save a global value!

Mora
User Off Offline

Quote
By the way this hook is triggered when server is ddosed and shut down? This case included?

/if not, you can save servertime value each 10 minutes or 5 or w/e using timer.

old Re: Save a global value!

minos
User Off Offline

Quote
@user Mora: i think i need only one save in case the server is closed or map is changed
what if i want to make it every 10 minutes or 5 ?
should i use timer(5*1000,"save.function","",1)
edited 2×, last 25.05.18 12:52:21 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview