GeoipCity Function

Gets the city name.

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


const char[] ip

Ip to determine the city code.

char[] name

Destination string buffer to store the city 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.