Time zone.
#1

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).
Reply
#2

you could try to get the computer time of the player. then you always have the good one.
Reply
#3

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
Reply
#4

Can you give me example how does it should look?
Reply
#5

You can use the function
Код:
GetPlayerIp
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...
Reply
#6

http://forum.sa-mp.com/index.php?topic=49875.0
Reply
#7

Thanks for answers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)