GeoipRegion Function

Gets the full region name.

bool GeoipRegion(const char[] ip, char[] name, int maxlength, int client)


const char[] ip

Ip to determine the region code.

char[] name

Destination string buffer to store the region name.

int maxlength

Maximum length of output string buffer.

int client

Client index in order to return the result in the player's language -1: the default language, which is english. 0: the server language. You can use LANG_SERVER define. >=1: the player's language.

Return Value

True on success, false otherwise.