GeoipRegion

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

Gets the full region name.

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

Parameters

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

bool True on success, false otherwise.