Guest User

Untitled

a guest
May 29th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <a_samp>
  2. #include <a_http>
  3.  
  4.  
  5.  
  6.  
  7.  
  8. main()
  9. {
  10. HTTP(1,HTTP_GET,"ip-whois.net/ip_geo.php?ip=79.134.25.245","","Country");
  11. }
  12.  
  13.  
  14.  
  15.  
  16.  
  17. forward Country(index, response_code, data[]);
  18. public Country(index, response_code, data[])
  19. {
  20. if(response_code == 200)
  21. {
  22. new pos = strfind(data,"Страна:",true,-1);
  23. new pos2 = strfind(data,"<br>",true,pos);
  24.  
  25. new country[100];
  26. strmid(country,data,pos+8,pos2,strlen(data));
  27. print(country);
  28. }
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment