function onplayerjoin message??

Started by ForOver, Nov 17, 2017, 10:19 PM

Previous topic - Next topic

ForOver

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 :'(

umar4911

function onPlayerJoin( player )
{   
    local IP = player.IP;
  Message(player.Name + " Connecting From: "+ IpToCountry( IP )+" ");
}
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

!


Discord: zeus#5155

ForOver

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

D4rkR420R

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

!

#5
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 );

Discord: zeus#5155

ForOver

Its Solved now. i added this without country