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?
	
	
	
		
	
	
	
		
Can anyone help me how to setup?
			
			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?