/SAMP-geoip

Geographical IP based on MaxMind databases for SA-MP

Primary LanguageSourcePawn

SAMP-geoip

Geographical IP based on MaxMind databases for SA-MP

this product includes GeoLite2 data created by MaxMind, available from http://maxmind.com/

Functions

GetPlayerCountry(playerid, string[], const len = sizeof(string));
GetPlayerISP(playerid, string[], const len = sizeof(string));
GetPlayerCity(playerid, string[], const len = sizeof(string));
GetPlayerGMT(playerid);

GetIPCountry(ip[], dest[], len = sizeof(dest));
GetIPISP(ip[], dest[], len = sizeof(dest));
GetIPCity(ip[], dest[], len = sizeof(dest));
GetIPGMT(ip[]);

Speed Test

[07:54:06] took 1 ms - GetPlayerCountry
[07:54:06] took 0 ms - GetPlayerCity
[07:54:06] took 17 ms - GetPlayerISP

Accuracy

http://www.maxmind.com/en/city_accuracy - City accuracy
Country accuracy - 99.5%

Credits

  • Whitetiger
  • RaekwonDaChef
  • Y_Less
  • Andreas Gohr