I need a working detection of country script
#8

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; 
}
Worked Thanks !!!

Code:
stock GetPlayerCountry(playerid)
{
    new string3123[32];
    new ip123[24];
    GetPlayerIp(playerid, ip123, sizeof(ip123));
    GetIPCountry(ip123, string3123, sizeof(string3123));
    return string3123; 
}
++REP
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)