PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_ip2country

IP to Country table functions

Function Description
IP2Country.GetCountryCode(sIP)Return country code of given IP or nil when IP is not valid.
IP2Country.GetCountryName(sIP)Return country name of given IP or nil when IP is not valid.
IP2Country.GetCountryName(tUser)Return country name for given user.
IP2Country.Reload()Reload (update) database from database files.
luaapi/px_ip2country.txt · Last modified: 16/06/2015 14:04 by ppk