SA-MP Forums Archive
Smooth Weather Etc - 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: Smooth Weather Etc (/showthread.php?tid=183517)



Smooth Weather Etc - Kyle - 15.10.2010

Is there a way to do smooth weather + smooth time changes without making the clock be like single player where it advances +6hr when die etc?

Thanks


Re: Smooth Weather Etc - Mauzen - 15.10.2010

https://sampwiki.blast.hk/wiki/TogglePlayerClock

You can use the example on the page, it updates the clock if a player dies etc.
Smooth weather is only possible with the clock being active


Re: Smooth Weather Etc - Kyle - 15.10.2010

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/TogglePlayerClock

You can use the example on the page, it updates the clock if a player dies etc.
Smooth weather is only possible with the clock being active
The clock advances +6hrs? Upon death.


Re: Smooth Weather Etc - Mauzen - 15.10.2010

This is what the example avoids. OnPlayerStateChange is also called onplayerdeath, and it sets the players clock to a global variable clock, so it do not advance


Re: Smooth Weather Etc - Kyle - 15.10.2010

Thanks, Does the weather change now smoothly. I tested and the times does but aint saw the weather.