-
-
Notifications
You must be signed in to change notification settings - Fork 171
IP2C standalone resource #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP2C standalone resource #405
Conversation
move ip2c inside [admin] + Remove admin2 ip2c implementation + fix getPlayerCountry call in admin admin_server.lua + fix update admin panel when IP2C starts/stops + update gitignore
Let me know if you want anything changed, I'm all ears. |
… if any unknown codes in CSV There are no unknown country codes in CSV now, it's good 👍
Co-Authored-By: srslyyyy <[email protected]>
Andorra flag was wrong, multitheftauto#318 Co-Authored-By: srslyyyy <[email protected]>
Images from Wikipedia Resized with https://www.iloveimg.com/resize-image#resize-options,pixels Tested, getPlayerCountry and getCountryName working multitheftauto#318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're awaiting feedback from this convo on development discord:
Either option has to be implemented, requesting input from @jlillis (AGENT_STEELMEAT)
4d48b98
to
aeb79eb
Compare
This reverts commit aeb79eb.
Outputs server log deprecation warning if any external scripts call this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only have a few minor things worth considering but this is great work and ready to merge as is. Unless anyone has further feedback I'll merge it in 3 days.
List of changes
ip2c
resource #222)Description
ip2c is an optional resource that, when running, will fetch player countries via IP using a list provided by MTA HQ.
It can also convert country code to country name using the ISO 3166 standard.
admin & admin2 are responsible for starting/stopping ip2c based on resource setting "*useip2c".
scoreboard detects when ip2c is started/stopped.
Note
MTA HQ IpToCountryCompact.csv (Direct download link) - used in ip2c/server.lua.
Thank you