SA-MP Forums Archive
-- solved -- - 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: -- solved -- (/showthread.php?tid=508367)



-- solved -- - Baltazar - 21.04.2014

ok, nvm, clear. thanks!


Re: GetPlayerTime() ? - Lordzy - 21.04.2014

Yes, you can. For setting a player's time, use SetPlayerTime. And to get it, use GetPlayerTime. To get the global time, I suggest you to use an array and store the time while the set function is being executed.


Re: GetPlayerTime() ? - Nathan_Taylor - 21.04.2014

There is a SetPlayer Time.
Код:
SetPlayerTime(playerid, hour, min);
//expample
SetPlayerTime(playerid, 12, 0);
And there is also a GetPlayerTime();
Код:
SetPlayerTime(playerid, &hour, &minute);



Re: -- solved -- - doreto - 21.04.2014

edit: too late