GeoIP2 extension to sourcemod#1245
GeoIP2 extension to sourcemod#1245peace-maker merged 46 commits intoalliedmodders:masterfrom accelerator74:geoip2-wip
Conversation
Merge with the latest changes
When a player leaves during a voteban, he will be banned anyway. Also added a cvar with a ban time setting.
Update from master
|
@accelerator74 can you resolve the merge conflicts. |
Update from master
Added GeoipLatitude, GeoipLongitude, GeoipDistance natives.
|
Thank you! The fallback to the server language looks good. I'll wait for a comment from other maintainers about the |
|
Nevertheless, I made the definition of the language by the client index :) I see colleagues from the amxmodx team did the same :) P.S.: By the way, yes, most of the code was borrowed from them, but it seems that everything is one team :) |
|
@peace-maker do you need anything from me to help move this one forward? |
|
@KyleSanderson No, this looks good. I didn't notice the changes after my last comment, so this is fine now from my side. If you don't have any strong feelings towards selecting the country language by string, 🚢 But above all this requires changes to the packaging scripts, since we can't ship the old |
This package is the last CC-BY-SA licensed GeoLite2-City database extracted from https://src.fedoraproject.org/rpms/geolite2 from december 2019. This doubles the download size for SM packages, but it's what we have to deal with atm :(
If the lookup failed, we'd copy back whatever is on the stack in the ccode buffer.
I updated the geoip extension for sourcemod using my geoip2 extension.