GeoipCountryEx Function

Gets the full country name.

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

Parameters

const char[] ip

Ip to determine the country code.

char[] name

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