Player's Country Info (Y.A.T.E.S.) 
4 comments




The plugin retrieves and displays player's country during joining or leaving a server. Compared to



For Linux machines, you must install
geoip-bin
package if you do not have it already. Open the Terminal and paste the following command:sudo apt-get install geoip-bin
// For Debian based systemssudo yum install geoip
// For Red Hat based systems (mostly Fedora)
sys/lua/_yates/plugins
directory path and you're ready to go.
sys/lua
path. Afterwards open server.lua with a text editor and add the following line:Code:
1
dofile("sys/lua/CountryLocation.lua")
Changelog

addAction()
instead of addhook()
because the later one is deprecated

You can do anything as you wish with this file. You can also upload it to other sources as long as you have my permission.
edited 3×, last 24.04.17 07:19:49 pm

Comments
4 comments



Log in!
You need to log in to be able to write comments!Log in

Finally better version of Locmod, thank you.
It would be more useful if there would be a function like
It would be more useful if there would be a function like
getPlayerCountry(player)
which returns table with 2 records of eg.: {"HU", "Hungary"}
. 


