SA-MP Forums Archive
Help me! :D - 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: Help me! :D (/showthread.php?tid=76932)



Help me! :D - Xeretta - 07.05.2009

Hi, I need a script, where the show
hours of GTA on my server, the default time of the GTA,
where the minutes are seconds! xD
And it was at night, at 20:00, the same as normal!
I hope you can help me! *-*

Sorry for my bad english! ._.


Re: Help me! :D - ferriswheel - 07.05.2009

Either set a timer and when that timer's done do SetWorldTime or use gettime and SetWorldTime.

Example:
Код:
forward ChangeTime();

int theTime;
 
public OnGameModeInit( )
{
    SetWorldTime(0);
    theTime = 0;
    SetTimer("ChangeTime",60000,true);
}
 
public ChangeTime()
{
	SetWorldTime(theTime + 1);
    theTime ++;
}
(Untested)



Re: Help me! :D - Xeretta - 07.05.2009

I must also show that the "time" in the game
TextDraw! : D