Admin Tools
Ip Country Mod
Creator
armageddon
Version
N/A
Game Type
MOHAA
Reborn Compatible
2.5 and above
Description
(Reborn IS NEEDED on your server!)
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:
[quote]//REBORN EVENT REGISTERING
local.result = registerev "connected" global/connectedhandler.scr
//load ip->country arrays
waitexec global/ip2co/arrays.scr[/quote]
If you already have a 'connected' event registered, add this in the connected event .scr...
PHP Code:
[quote]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
} [/quote]
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...
Related MOHAA Mods
More Admin Tools →Engine & Patch Compatibility
Community-tested verification on official patches & Reborn
0.00 reviews
Community Rating & Discussions
Rate this mod and share feedback or installation tips with fellow players.
Your Rating:
Leave a Comment / ReviewLog in to join the discussion
Loading discussions...
Downloads
199
Total Downloads
Date Added
June 27, 2015
Download
Mod Information
Reborn2.5 and above



