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

4 comments
23.04.17 03:29:11 pm
like 4 like it!
2 kb, 79 Downloads
Fraizeraust
Moderator
Offline Off
flame NOTE flame - It requires file cs2d Y.A.T.E.S (2.0.4) - Admin Script / Framework (39) 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 (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:
Code:
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.
imageimage
edited 3×, last 24.04.17 07:19:49 pm
ok This file has been reviewed and approved by Sparty (23.04.17 03:55:39 pm)

Comments

4 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
08.05.17 01:37:37 am
like I like it!
Up
Nekomata
User
Offline Off
useful!
27.04.17 08:34:13 pm
like I like it!
Up
Gaios
Security Supporter
Offline Off
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"}
.
27.04.17 02:17:28 pm
like I like it!
Up
Sparty
Reviewer
Offline Off
heres a like mate.
23.04.17 03:33:57 pm
like I like it!
Up
Marcell
Super User
Offline Off
Thumbs Up for Y.A.T.E.S and effort.
To the start Previous 1 Next To the start