rssgeoip
Category: | misc |
---|---|
Author(s): | Fro |
Downloads: | 797 |
Rate: | You need to be logged in to vote |
Rating: | 4.3 (8 Votes) |
Description:
GeoIP tools.
Example:
addEventHandler( "onPlayerJoin", root, function( )
local country, countryFull = exports.geoip:getCountry( getPlayerIP( source ) )
if country == "RU" then
local city = exports.geoip:getCountryCity( getPlayerIP( source ) )
outputChatBox( "* ".. getPlayerName( source ) .." has joined from Country: ".. countryFull .." City: ".. city, 255, 100, 100 )
else
outputChatBox( "* ".. getPlayerName( source ) .." has joined from Country: ".. countryFull, 255, 100, 100 )
end
end )
Example:
addEventHandler( "onPlayerJoin", root, function( )
local country, countryFull = exports.geoip:getCountry( getPlayerIP( source ) )
if country == "RU" then
local city = exports.geoip:getCountryCity( getPlayerIP( source ) )
outputChatBox( "* ".. getPlayerName( source ) .." has joined from Country: ".. countryFull .." City: ".. city, 255, 100, 100 )
else
outputChatBox( "* ".. getPlayerName( source ) .." has joined from Country: ".. countryFull, 255, 100, 100 )
end
end )
Version history
Version | Publish Date | Changes | |
---|---|---|---|
0.1.0 | 2012-02-06 17:47:43 | First public release | Download |