SA-MP Forums Archive
How to set time - 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: How to set time (/showthread.php?tid=627300)



How to set time - tharvin - 26.01.2017

How do i change time in my server..is there any cmds?


Re: How to set time - Eoussama - 26.01.2017

Seriously? Couldn't you ****** this?
SetWorldTime(Timer);


Re: How to set time - Ultraz - 26.01.2017

Use
SetWorldTime(Timer); as Eoussama mentioned.


Re: How to set time - tharvin - 26.01.2017

but when i use it..in a while it dissapear


Re: How to set time - haikalbintang - 30.01.2017

Here is a really simple set time commands :

PHP код:
CMD:settime(playeridparams[])
{
 new 
string[128], time;
 if(
sscanf(params"i"time)) return SendClientMessage(playerid, -1"[USAGE]: /settime [time]");
 if(
time || time 23) return SendClientMessage(playerid, -1"Time is only 0 untill 23.");
 
SetWorldTime(time);
 
format(stringsizeof(string), "You have set time to %d."time);
 
SendClientMessage(playerid, -1string);
 return 
1;

I hope that will help you, sorry for my rip english.