Forum

> > CS2D > Scripts > Save a global value!
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Save a global value!

5 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Save a global value!

minos
User Off Offline

Zitieren
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,

alt Re: Save a global value!

Mora
User Off Offline

Zitieren
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.

alt Re: Save a global value!

minos
User Off Offline

Zitieren
@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)
2× editiert, zuletzt 25.05.18 00:52:21
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht