Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. print("flags2..made by sorrow");
  2.  
  3.  
  4. function ob(ip) {
  5. gx = new HttpRequest();
  6. gx.src = "http://usercountry.com/v1.0/json/" + ip;
  7. gx.utf=true;
  8. gx.oncomplete = function () {
  9. js0n(this.page);
  10. }
  11. gx.download();
  12. }
  13.  
  14.  
  15. function todos(esto) {
  16. Users.local(function(g) {
  17.  
  18. if(g.vroom == 0){
  19. g.scribble(esto);
  20. }
  21. });
  22. }
  23.  
  24.  
  25.  
  26.  
  27. function mostrar(url,ex) {
  28. if(ex!=null){
  29. xk = new Scribble();
  30. xk.src = "http://sorrow-sb0t.webs.com/" + url + ".gif";
  31. xk.oncomplete = function(e) {
  32. if(e){
  33. im = this;
  34. print(0,"\x0315Canada\x20\x0313\u2661\x20\x0315Newfoundland");
  35. todos(im);
  36. }
  37. };
  38. xk.download();
  39.  
  40. }else{
  41. xk = new Scribble();
  42. xk.src = "http://sorrow-sb0t.webs.com/" + url + ".gif";
  43. xk.oncomplete = function(e) {
  44. if(e){
  45. im = this;
  46. todos(im);
  47. }
  48. };
  49. xk.download();
  50. }
  51. }
  52.  
  53.  
  54. function js0n(string) {
  55. datos = JSON.parse(string);
  56. if (datos.country.name != null) print(0,"\x0315"+datos.country.name+ "\x0313 \u2661 \x0315"+datos.region.city+" \x0314~ \x0315"+datos.timezone.current_time.split("T")[1].split("-")[0].substr(0,5));
  57. mostrar(datos.country['alpha-2'].toLowerCase());
  58. }
  59.  
  60.  
  61. function onJoinCheck(u){
  62. if (u.externalIp == "127.0.0.1") {
  63. mostrar('ca',u.externalIp);
  64. return true;
  65. } else {
  66. ob(u.externalIp);
  67. return true;
  68. }
  69. return true;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement