real 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: real time (
/showthread.php?tid=68185)
real time -
DauerDicht - 07.03.2009
hello, i hope u can help me.
if it 6-7-8 o clock (evening) its to light! How can i set that at 6 (evening) is darker?
pls help!
Re: real time -
DauerDicht - 08.03.2009
pls help!
Re: real time -
Hot - 08.03.2009
First: Search.
Second: If you look at wiki you could learn more:wiki.sa-mp.com
Third: Create a timer to change the wheater every 1 minute ( 1 hour in game )
I am posting cuz anyone here readed my problem . so i am helping you.
Re: real time -
Hot - 08.03.2009
http://forum.sa-mp.com/index.php?topic=81600.0
http://forum.sa-mp.com/index.php?topic=33480.0
I found only using serach ...
Re: real time -
DauerDicht - 08.03.2009
i dont want a clock i want that its darker when its 6 o clock evenings!
Re: real time -
Think - 08.03.2009
Quote:
Originally Posted by DauerDicht
i dont want a clock i want that its darker when its 6 o clock evenings!
|
Код:
forward TOD();
(ongamemodeinit)
SetTimer("TOD", 5000, 1);
public TOD()
{
new hours,minutes,seconds;
GetTime(hours, minutes, seconds);
SetWorldTime(hours);
return 1;
}
Re: real time -
DauerDicht - 08.03.2009
where i must place it?!
Re: real time -
MenaceX^ - 08.03.2009
gettime function gets the time where the server hosted. Same about the SetWorldTime, it sets the world time exactly like you see out of your window.