PtokaX wiki

Hub (server) for Direct Connect

User Tools

Site Tools


luaapi:px_ip2country

This is an old revision of the document!


IP to Country metatable 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.1351437558.txt.gz · Last modified: 28/10/2012 15:19 by ppk