SA-MP Forums Archive
Just a simple question - 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: Just a simple question (/showthread.php?tid=186008)



Just a simple question - ViruZZzZ_ChiLLL - 27.10.2010

Will the function :

getdate(year, month, day);
gettime(hour, minute, second);

Also get's the other player's date and time according to their Computer System?


Re: Just a simple question - iggy1 - 27.10.2010

I beleive it just gets a timestamp from the server nothing to do with players.


Re: Just a simple question - Hiddos - 27.10.2010

Errno, only the one of the server, as there's no "playerid" parameter. You could use the GeoIP plugin (I've heard a few things about it, not everything) which comes with the GetPlayerTimeZone function to retrieve their local time.


Re: Just a simple question - Lenny the Cup - 27.10.2010

It gets the UNIX time from your host computer and converts it into time and date. But like Hiddos said, there might be other ways of getting the information you're looking for. One would be to retrieve the country the player is from and count the timezones.