multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151 stars 151 forks source link

IP2C standalone resource #405

Closed Fernando-A-Rocha closed 1 year ago

Fernando-A-Rocha commented 1 year ago

List of changes

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

Fernando-A-Rocha commented 1 year ago

Let me know if you want anything changed, I'm all ears.

Fernando-A-Rocha commented 1 year ago

We're awaiting feedback from this convo on development discord: image Either option has to be implemented, requesting input from @jlillis (AGENT_STEELMEAT)

After further discussion, option 2 (placeholder function in admin) has been implemented (see bd1e9c578d449edc645e84a103416e24cfdb4a4b).

Ready for review.