Hey Guys! What's Going On?
I was just trying to create a new feature & I have one question
Can we Get Country Name from IPtoCountry Like As i Wanted to Implement this
function SetLanguage( player )
{
local Country = IpToCountry( player.IP );
if ( IpToCountry( player ) == How to Get Country name )
{
status[ player.ID ].Language = "English";
}
}
Thanks!
Regards, Terror Styles!
Just, print the country, and set accordingly.
Setting a player's language based on their country is a racist act and a very easy way to frustrate your players out of your server.
I suggest using a better IP to country database. Such as GeoIP. IIRC there's a plugin for that.