I've seen people ask if this is possible, well, with Reborn, it's possible now... (Thanks Razo for making this possible)
Here is a mod I made to show a player's Country. I think it is neat to know where everyone is from.
Installation Instructions:
Unzip both the .dat file and .pk3 file to main folder
If you already have a custom DMPrecache.scr, add this to it...
PHP Code:
//REBORN EVENT REGISTERING
local.result = registerev "connected" global/connectedhandler.scr
//load ip->country arrays
waitexec global/ip2co/arrays.scr
If you already have a 'connected' event registered, add this in the connected event .scr...
PHP Code:
if(local.player)
{
local.player.data["name"] = netname local.player
local.player.data["ip"] = getip local.player
local.player.data["ccode"] = 235
local.player.data["country"] = ""
waitexec global/ip2co/ip2co.scr local.player.data["ip"] local.player
}
Requirements: Reborn 2.5 Gamma+
Note: This may not work well with Elbot, since both mods are opening files for data, and there is a maximum of 32 files that can be opened at once. I 'think' it should be fine though. Just giving a heads up.
Use this mod for other mods...
Now, each player will have attached to them, local.player.data["ccode"] . With this you can see what country they are from. (country codes can be found in countries.txt of the .zip file) . Then you can take that and interpret things into other languages, such as huds and iprints, etc...