I need a working detection of country script
#5

Quote:
Originally Posted by XStormiest
View Post
I will give you an example for this one geolocation.inc, since it is the one I've been using and it works.
Code:
GetCountry(playerid)
{
    new country[32], message[128], name[24];
    GetPlayerName(playerid, name, sizeof(name));
    GetPlayerCountry(playerid, country, sizeof(country))
    format(message, sizeof(message), "%s is from the country %s",  name, country);
    return message; 
}
Yes, I'm currently using geolocation.inc and there is the same function


Code:
stock GetPlayerCountry(playerid, string3123[], const len = sizeof(string3123)) {
	new ip[24];
	GetPlayerIp(playerid, ip, sizeof(ip));

	GetIPCountry(ip, string3123, len);

	return true;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)