SA-MP Forums Archive
real time in gm - 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 in gm (/showthread.php?tid=89376)



real time in gm - xCoder - 01.08.2009

how can i add real time to my server.

For exam. If time is 21.02 in real world i wanna make the server time 21.02 auto.

plz help


Re: real time in gm - .::: Ecko :::. - 01.08.2009

Really easy,I'll give you an example
Код:
public PlayersTime()
{
  for(new i = 0; i < ID; i++)
	{
		GetPlayerTime(i, hours, minutes);
		SetPlayerTime(i, hours, minutes +1);
	}
	return 1;
}

public PlayersHour()
{
  for(new i = 0; i < ID; i++)
	{
		GetPlayerTime(i, hours, minutes);
		SetPlayerTime(i, hours +1, minutes);
	}
	return 1;
}
Else is just textdraw and a little more work.

Ecko


Re: real time in gm - xCoder - 01.08.2009

thx


Re: real time in gm - .::: Ecko :::. - 01.08.2009

Quote:
Originally Posted by xCoder
thx
You welcome

Ecko


Re: real time in gm - xCoder - 02.08.2009