AMX Mod X API Documentation

Signature
native Continent:geoip_continent_code(const ip[], result[3]);
Description

Look up the continent code for a given IP address.

Notes
  • This native requires GeoIP City database, which can be retrieved from:

    http://dev.maxmind.com/geoip/geoip2/geolite2/ (MaxMind DB binary)

  • The code can be retrieved as integer (See CONTINENT_* constants.) or string (2 characters).
  • Possible continent codes are AF, AN, AS, EU, NA, OC, SA for

    Africa(1), Antarctica(2), Asia(3), Europe(4), North America(5), Oceania(6), South America(7).

Parameters
  • ip The IP address to look up.
  • result The result of the geoip look up.
Returns

The continent id on successful lookup, 0 otherwise.

Назад
Верх