Automatic timer every hour - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Automatic timer every hour (
/showthread.php?tid=65994)
Automatic timer every hour -
Henrix - 18.02.2009
Hello,
The thing i wanna have for my server is a automatic car reset.
I already fixed this and i got a command for it now.
But actually, i want it to happen automaticly every hour.
So, how can i make a timer that will automaticly 'do' the action (VehicleReset) every hour?
Re: Automatic timer every hour -
Redirect Left - 18.02.2009
pawn Код:
SetTimer("VehicleReset",3600000,1);
Your post sounded like you already had your function, so you just need the above bit of code, it goes in OnGameModeInit.
Re: Automatic timer every hour -
Henrix - 18.02.2009
Ok, i see, but the reset thing doesn't work with my vehicle streamer.
Ehm, let's do it another way:
The thing i need is when someone leaves his vehicle, the vehicle will automaticly respawn to his normal place after 5 min not being used.
REALLY happy now!
i fixed it myself with an simple little script, and you're timer helped me with it, thanks.