Files

> > CS2D > Lua Scripts > Player's Country Info (Y.A.T.E.S.)
Files overviewCS2D overviewLua Scripts overview

English Player's Country Info (Y.A.T.E.S.) >

4 comments2 kb, 513 Downloads

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

GeoB99
Moderator Off Offline

flame NOTE flame - It requires file cs2d Y.A.T.E.S (3.0.2) - Admin Script / Framework in order to run the plugin properly otherwise you have got to use the standalone script! Furthermore, the plugin uses geoiplookup package only available for Linux systems thus it won't work on a Windows machine.

spam Documentation

The plugin retrieves and displays player's country during joining or leaving a server. Compared to file cs2d Locmod 1.0 , this script is more efficient because Locmod uses a .CSV static file which it doesn't update.

off-topic Installation

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 systems
sudo yum install geoip
// For Red Hat based systems (mostly Fedora)

> IF YOU'RE USING Y.A.T.E.S.: Extract the Country_Location folder to
sys/lua/_yates/plugins
directory path and you're ready to go.

> IF YOU'RE NOT USING Y.A.T.E.S.: Extract the CountryLocation.lua file to
sys/lua
path. Afterwards open server.lua with a text editor and add the following line:
1
dofile("sys/lua/CountryLocation.lua")

Changelog

CHANGED
24.04.2017 - Now the plugin uses
addAction()
instead of
addhook()
because the later one is deprecated
ADDED
23.04.2017 - Initial release

illegal Rules & Permissions

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
Approved by Sparty

Download Download

2 kb, 513 Downloads

Comments

4 comments
To the start Previous 1 Next To the start

Log in!

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

old

Nekomata
User Off Offline

useful!
I like it!

old

Gaios
Reviewer Off Offline

Finally better version of Locmod, thank you.

It would be more useful if there would be a function like
getPlayerCountry(player)
which returns table with 2 records of eg.:
{"HU", "Hungary"}
.
I like it!

old

Sparty
Reviewer Off Offline

heres a like mate.
I like it!

old Good Job.

Marcell
Super User Off Offline

Thumbs Up for Y.A.T.E.S and effort.
I like it!
To the start Previous 1 Next To the start