Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Terror_Styles on Jul 19, 2017, 06:41 AM

Title: Can We Get Country Name from IPToCountry?
Post by: Terror_Styles on Jul 19, 2017, 06:41 AM
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!
Title: Re: Can We Get Country Name from IPToCountry?
Post by: KAKAN on Jul 19, 2017, 08:33 AM
Just, print the country, and set accordingly.
Title: Re: Can We Get Country Name from IPToCountry?
Post by: EK.IceFlake on Jul 19, 2017, 12:50 PM
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.
Title: Re: Can We Get Country Name from IPToCountry?
Post by: ysc3839 on Jul 21, 2017, 06:05 PM
I suggest using a better IP to country database. Such as GeoIP. IIRC there's a plugin for that.