Can We Get Country Name from IPToCountry?

Started by Terror_Styles, Jul 19, 2017, 06:41 AM

Previous topic - Next topic

Terror_Styles

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!

KAKAN

Just, print the country, and set accordingly.
oh no

EK.IceFlake

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.

ysc3839

I suggest using a better IP to country database. Such as GeoIP. IIRC there's a plugin for that.