Dateien

> > CS2D > Lua Scripts > Player's Country Info (Y.A.T.E.S.)
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

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

4 Kommentare2 kb, 491 Downloads

alt 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.
3× editiert, zuletzt 24.04.17 19:19:49
Zugelassen von Sparty

Download Download

2 kb, 491 Downloads

Kommentare

4 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Nekomata
User Off Offline

useful!
Ich mag es!

alt

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"}
.
Ich mag es!

alt

Sparty
Reviewer Off Offline

heres a like mate.
Ich mag es!

alt Good Job.

Marcell
Super User Off Offline

Thumbs Up for Y.A.T.E.S and effort.
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang