Time zone. - 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: Time zone. (
/showthread.php?tid=104217)
Time zone. -
lakierka - 23.10.2009
Hello. Maybe someone know how to do script when player connect to server would show his country and time zone? Somethig like that:
Код:
*** %s (ID:%d) connected to server (GMT -/+ Timezone, country).
Re: Time zone. -
thuron - 23.10.2009
you could try to get the computer time of the player. then you always have the good one.
Re: Time zone. -
Nero_3D - 23.10.2009
idk if its possible in 0.3 to get country to time of the player
but you can get his country (and his gmt) through his ip
there were some kind of ip to country things once around in this forum
Re: Time zone. -
lakierka - 24.10.2009
Can you give me example how does it should look?
Re: Time zone. -
thuron - 24.10.2009
You can use the function
to get the players ip. then you have to search for a converter that gives the country of that ip. i dunno where to get that...
Re: Time zone. -
dice7 - 24.10.2009
http://forum.sa-mp.com/index.php?topic=49875.0
Re: Time zone. -
lakierka - 24.10.2009
Thanks for answers.