GeoipCountryEx

Last Updated2021-06-30
Created At2021-06-30

Gets the full country name.

native bool GeoipCountryEx(const char[] ip, char[] name, int maxlength, int client = -1)

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

bool True on success, false otherwise.