GetTime
#1

When I do gettime func it returns some time, but I want it to return time of one country ex. Germany

Help?
Reply
#2

gettime gets the time of the computer the server is on. Use a GeoIP instead that allows you to get the GMT of the country.
Reply
#3

Quote:
Originally Posted by Konstantinos
View Post
gettime gets the time of the computer the server is on. Use a GeoIP instead that allows you to get the GMT of the country.
Yes, You could use this link: https://sampforum.blast.hk/showthread.php?tid=460410 to help you out
  • GetPlayerHost(playerid)
  • GetPlayerISP(playerid)
  • GetPlayerCountryCode(playerid)
  • GetPlayerCountryName(playerid)
  • GetPlayerCountryRegion(playerid)
  • IsProxyUser(playerid) // Returns true if a proxy is detected
Reply
#4

Any tutorial to do it, GeoIP seems just to get the country,city and ISP, I need local time
Reply
#5

I don't think there is any tutorial but a simple search would help you to find what you want. It didn't take more than a minute:

https://sampforum.blast.hk/showthread.php?tid=296171

GetPlayerGMT(playerid);
GetIPGMT(ip[]);

---

https://sampforum.blast.hk/showthread.php?tid=32509

GetPlayerGMT(playerid);
Reply
#6

I did use search and I found that, but that can't help me. I want to set the time to be global like time in Germany
Reply
#7

Quote:
Originally Posted by feartonyb
View Post
I did use search and I found that, but that can't help me. I want to set the time to be global like time in Germany
You should've said that in your first post. Use gettime function normal and then add/subtract from the hour according to the time of Germany.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)