SA-MP Forums Archive
Set time to night when people join? - 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: Set time to night when people join? (/showthread.php?tid=367387)



Set time to night when people join? - Eminem 2ka9 - 09.08.2012

When I start the server I want it to be completly dark, time "0"?


Re: Set time to night when people join? - kaisersouse - 09.08.2012

or 23

SetWorldTime(23);


Re: Set time to night when people join? - FalconX - 09.08.2012

Quote:
Originally Posted by kaisersouse
Посмотреть сообщение
or 23

SetWorldTime(23);
Isn't that SetWorldTime is for the whole server?

Why not just use this?

pawn Код:
SetPlayerTime( playerid,0,0 ); //midnight
https://sampwiki.blast.hk/wiki/SetPlayerTime


Re: Set time to night when people join? - kaisersouse - 09.08.2012

Since everyone will have the same time set for them when they join...why not just set the entire server?


Re: Set time to night when people join? - FalconX - 09.08.2012

Quote:
Originally Posted by kaisersouse
Посмотреть сообщение
Since everyone will have the same time set for them when they join...why not just set the entire server?
Hmm, mate I was talking about SetPlayerTime on OnPlayerConnect.. if he uses SetWorldTime in OnPlayerConnect then the server time will be changed to 23 whenever someone enters the server.


Re: Set time to night when people join? - KingHual - 09.08.2012

Who said anything about OnPlayerConnect? The thread starter clearly stated 'when I start the server'


Re: Set time to night when people join? - FalconX - 09.08.2012

Quote:
Originally Posted by king_hual
Посмотреть сообщение
Who said anything about OnPlayerConnect? The thread starter clearly stated 'when I start the server'
I guess you didn't read the title mister


Re: Set time to night when people join? - grand.Theft.Otto - 10.08.2012

This is confusing ...

the thread name says "Set time to night when people join?"

Then he's asking to set the time "when the server starts"

Which one do you want really ?


Re: Set time to night when people join? - FalconX - 10.08.2012

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
This is confusing ...

the thread name says "Set time to night when people join?"

Then he's asking to set the time "when the server starts"

Which one do you want really ?
Exactly! I was confused for the first time when the guy posted above my post named King or something wrote that lmao, and when I re-read the title - I WAS RIGHT xd


Re: Set time to night when people join? - NinjaChicken - 10.08.2012

no he means so that when players join his server its night time for them, not that hard really but i can understand the confusiion, now do you want it to be night the whole time or go day, then night again? because if you want it night 24/7 i can do a timer for you so every hour it sets it back to 23

This forum requires that you wait 120 seconds between posts. Please try again in 21 seconds.
FUCK U FORUMS


Re: Set time to night when people join? - Eminem 2ka9 - 10.08.2012

It's fine I did it already hours ago. :S No I just wanted it to be night 24/7 nuff said.. geez