Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Whitetigerswt/SAMP-geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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