geoip_city
Look up the full city name for the given IP address.
Syntax
native geoip_city(const ip[], result[], len, id = -1)
Usage
| ip | The IP address to look up. |
| result | The result of the geoip look up. |
| len | The maximum length of the result buffer. |
| id | An optional player's index in order to return the result |
Return
The — result length on successful lookup, 0 otherwise.
Notes
This native requires GeoIP City database, which can be retrieved from:
Defined in
geoip.inc
at line 126
.
This documentation was automatically generated from source.