Question!Please - 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)
+--- Thread: Question!Please (
/showthread.php?tid=590344)
Question!Please -
Ugaustin - 28.09.2015
hi am I allowed to change worldtime like " ",hour,minute,week);
or im not allowed??Please help me!
Re: Question!Please -
shourya12 - 28.09.2015
you mean you want to have custom time/date/etc for your server?
yes you can do that.
Re: Question!Please -
Ugaustin - 28.09.2015
in samp query.. worldtime Monday | 13:00
Re: Question!Please -
CalvinC - 28.09.2015
You can use
Getdate to get the real date, but I don't think there's any date in SAMP that you can set like in singleplayer.
To set the world time, use
SetWorldTime, or to adjust minutes and seconds aswell, use
SetPlayerTime.
If you want it to be the real time, create a 1-second timer and do:
Код:
new hour, minute, second; // Create 3 variables to store the real hours, minutes and seconds in
Gettime(hour, minute, second); // Get the real time, and store the hours in "hour", minutes in "minute", and seconds in "second"
foreach(Player, i) SetPlayerTime(playerid, hour, minute, second); // Loop through all players, and set their time to the real time
Re: Question!Please -
Ugaustin - 28.09.2015
I made it, but I have only question.if I can change..