[HELP] IP-Grabber for SAMP

RevolutionHD

New member
Joined
May 4, 2017
Messages
2
Reaction score
0
Guys I am new to this site!
Is there any way to make IP-Grabber for SAMP!

I found some code but i need help?


Code:
string CodIP = "127.0.0.1";

XmlDocument Document = new XmlDocument();
Document.Load("http://freegeoip.net/xml/" + CodIP);
XmlNode Node = Document.DocumentElement.SelectNodes("/response/current_observation")[0];
            
string Example = Node["CountryName"].InnerText;
MessageBox.Show("Example location: " + Example);


Code:
Node["IP"].InnerText // Returns the IP address.
Node["CountryCode"].InnerText // Returns the country code e.g. GB.
Node["CountryName"].InnerText // Returns the country name e.g. United Kingdom.
Node["RegionCode"].InnerText // Returns the region code e.g. ENG.
Node["RegionName"].InnerText // Returns the region name e.g. England.
Node["City"].InnerText // Returns the city name e.g. Cambridge.
Node["ZipCode"].InnerText //Returns the zip code/post code e.g. C1
Node["TimeZone"].InnerText //Returns the timezone e.g. Europe/London
Node["Latitude"].InnerText //Returns latitude e.g. 10.00
Node["Longitude"].InnerText //Returns longitude e.g. 10.00
Node["MetroCode"].InnerText //Returns... fuck knows? My testing with IP's returns 0. Never looked into metro code:P.

Can anyone help me how to setup?
 

RiverGrande

New member
Joined
Apr 25, 2017
Messages
4
Reaction score
0
That code is irrelevant and isn't even written in CLEO or C. There's no way for you to client wise get the IP of another player unless the server itself provides a way/is exploitable (e.g: hidden command to get a players IP server side), CLEO has no access to this.
 

py#

Active member
Joined
Jul 30, 2016
Messages
28
Reaction score
0
Won't work. Half of SAMP players use Skype just get there IP with that.... lmao.
 
Top