SA-MP Forums Archive
Gettime (Automatic Gamemoderestart) - 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: Gettime (Automatic Gamemoderestart) (/showthread.php?tid=101509)



Gettime (Automatic Gamemoderestart) - lolmaster - 11.10.2009

Hi Guys,

Sorry for my verry bad english.


Also, i will create a Automatic Gamemode Restart.
He should be every night at 4 clock.

This is my Code:

Код:
			new hour,minuite,second;
			gettime(hour,minuite,second);
			FixHour(hour);
			hour = shifthour+1;
            if(hour >= 4 && minuite <=9)
			{
			  SendClientMessage(playerid, COLOR_GRAD2,"Gamemode Restart.");
              SendRconCommand("gmx");
			  return 1;
			}
I tried it with a timer.
But it comes every half-second of the text: Gamemoderestart and the server restarts