View Single Post
Author Message
AeN0
Junior Member
Join Date: Nov 2008
Old 01-05-2009 , 12:02   Country Nick Plugin
Reply With Quote #1

The plugin is maintained here https://forums.alliedmods.net/showth...19#post2737619

This plugin adds the country flag in his/her nickname and announces the player country when he/she connects to the server. This is NOT a country filter plugin.

Example :
Chat message : nickname from USA joined the game
nickname becomes [US]nickname in the scoreboard
if the country is unknown, [--]nickname


Changelog :
  • 1.0 - Initial release
  • 1.1
    • Fixed ingame change name (thx Antithasys)
    • Added translation support
    • unknown country => "[--]nickname" instead of "nickname"
  • 1.1.1
    • Fixed warning 219 at compile time

Setup :
Put countrynick.smx in plugins and countrynick.phrases.txt in translations. The archive translations.zip contains pl and de languages at the moment.


Misc :
I couldn't found a plugin that adds the flag to the nickname so I made it. It was done for my L4D server but It should work on any other game.

I advice you to update from time to time your GEOIP database to keep the current country <=> IP up to date. The database can be downloaded here http://geolite.maxmind.com/download/...y/GeoIP.dat.gz
Attached Files
File Type: txt countrynick.phrases.txt (300 Bytes, 9513 views)
File Type: zip translations.zip (1.1 KB, 8222 views)
File Type: sp Get Plugin or Get Source (countrynick 1.2.3_fix.sp - 1077 views - 4.7 KB)

Last edited by AeN0; 07-29-2021 at 15:50. Reason: 1.2.3
AeN0 is offline