are there any alternatives for


Or

loccountrycodekey.

But still this solution can be omitted because of If set on the user's Steam Community profile, The user's country of residence, 2-character ISO country code.
EDIT:
I just found it,


loccountrycodekey.
player(id, "country")
addhook("tcpreceiver","hook_tcp")
tcp_id = reqtcp("steamcommunity.com","/profiles/76561198386951497?xml=1")
print("create id: "..tcp_id)
function hook_tcp(id, state, result)
print("receive id: "..id)
print("state: "..state)
if (state > 0) then
print(result)
end
end
lua print(player(1,"country"))
at console then you see what it is. lua print(player(1,"country"))
at console then you see what it is.false
. For the record, I am running 1.0.0.5 p3. player(1, 'country')
doesn't work. sudo apt-get install geoip-bin
os.execute('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz')
os.execute('gunzip GeoIP.dat.gz')
os.execute('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz')
os.execute('gunzip GeoLiteCity.dat.gz')
-- country:
handle = io.popen("geoiplookup -f GeoIP.dat " .. ip .. " | awk -F, '{print $2;}'")
-- state/region:
handle = io.popen("geoiplookup -f GeoLiteCity.dat " .. ip .. " | awk -F, '{print $4;}'")