SA-MP Forums Archive
What's the difference? - 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: What's the difference? (/showthread.php?tid=267333)



What's the difference? - Outcast - 08.07.2011

What's the difference between SetWorldTime() and SetPlayerTime()?


Re: What's the difference? - iFriSki - 08.07.2011

https://sampwiki.blast.hk/wiki/SetWorldTime
https://sampwiki.blast.hk/wiki/SetPlayerTime


Re: What's the difference? - MA_proking - 08.07.2011

http://www.giyf.com/
Use this


Re: What's the difference? - Scenario - 08.07.2011

You can find this out on your own. Check out the SA-MP Wiki!

SetPlayerTime() vs. SetWorldTime()


Re: What's the difference? - Donya - 08.07.2011

SetWorldTime basically kinda sets the world element/environment, ( for everyone)

example, if you set it to 6, the world environment will be dawn

12 - day
18 - kind of night? getting night
12 - midnight, pure night.

SetPlayerTime basically does the same thing, but for one player + it set's the player's clock.


Re: What's the difference? - Outcast - 08.07.2011

I know that there's a SAMP wiki and all, I read it. I was just asking what the difference is, because on wiki there are 3 lines in total about these two.


Re: What's the difference? - Scenario - 08.07.2011

I think the wiki accurately explains the difference.

SetPlayerTime() - Sets the clock of the player to a specific value. This also changes the daytime (night/day etc.)

SetWorldTime() - Sets the world time to a specific hour.