Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ForOver on Nov 17, 2017, 10:19 PM

Title: function onplayerjoin message??
Post by: ForOver on Nov 17, 2017, 10:19 PM
guys, i want to add that, when player joins my server is shows player name and his country name
can u give me example to add that guys ? pls :'(
Title: Re: function onplayerjoin message??
Post by: umar4911 on Nov 18, 2017, 10:22 AM
function onPlayerJoin( player )
{   
    local IP = player.IP;
  Message(player.Name + " Connecting From: "+ IpToCountry( IP )+" ");
}
Title: Re: function onplayerjoin message??
Post by: ! on Nov 18, 2017, 12:20 PM
Link to topic (http://forum.vc-mp.org/?topic=1478.0)

Title: Re: function onplayerjoin message??
Post by: ForOver on Nov 18, 2017, 08:04 PM
Quote from: umar4911 on Nov 18, 2017, 10:22 AMfunction onPlayerJoin( player )
{   
    local IP = player.IP;
  Message(player.Name + " Connecting From: "+ IpToCountry( IP )+" ");
}
this code is not working
Title: Re: function onplayerjoin message??
Post by: D4rkR420R on Nov 19, 2017, 02:40 AM
Quote from: ForOver on Nov 18, 2017, 08:04 PM
Quote from: umar4911 on Nov 18, 2017, 10:22 AMfunction onPlayerJoin( player )
{   
    local IP = player.IP;
  Message(player.Name + " Connecting From: "+ IpToCountry( IP )+" ");
}
this code is not working

Did you setup the GeoIP?

Quote from: zeus on Nov 18, 2017, 12:20 PMLink to topic (http://forum.vc-mp.org/?topic=1478.0)
Title: Re: function onplayerjoin message??
Post by: ! on Nov 19, 2017, 07:33 AM
Quote from: ForOver on Nov 18, 2017, 08:04 PM
Quote from: umar4911 on Nov 18, 2017, 10:22 AMfunction onPlayerJoin( player )
{   
    local IP = player.IP;
  Message(player.Name + " Connecting From: "+ IpToCountry( IP )+" ");
}
this code is not working
Because this function is not specified.
Quote from: umar4911 on Nov 18, 2017, 10:22 AMIpToCountry( IP );
Title: Re: function onplayerjoin message??
Post by: ForOver on Nov 25, 2017, 12:07 PM
Its Solved now. i added this without country