jlalt

zzzzzz

Jun 20th, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.82 KB | None | 0 0
  1. #include a_samp
  2. #include streamer
  3.  
  4. new balloon, bvar, ballonchecker;
  5.  
  6. public OnFilterScriptInit()
  7. {
  8.    balloon = CreateObject(19337, -1605.94800, -177.69073, 13.53112,   0.00000, 0.00000, 0.00000);
  9.    CreateObject(5820, -273.39679, 1510.28894, 78.00000,   0.00000, 0.00000, 0.00000);
  10.    CreateObject(5820, -270.97198, 1519.51123, 85.25000,   0.00000, 0.50000, 88.24000);
  11.    SetTimerEx("BallonChck", 5000, 0, "i", bvar);
  12.    return 1;
  13. }
  14.  
  15. forward public Checker(ballonid, WHAT);
  16. public Checker(ballonid, WHAT) {
  17.    switch(WHAT) {
  18.       case 1: {
  19.          new Float:X,Float:Y,Float:Z;
  20.          GetObjectPos(ballonid, X, Y, Z);
  21.          if(X == -274.623687 && Y == 1522.535522 && Z == 88.199996)
  22.          {
  23.             SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  24.             bvar = 2;
  25.             KillTimer(ballonchecker);
  26.             SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  27.          }
  28.       }
  29.       case 2: {
  30.         new Float:X,Float:Y,Float:Z;
  31.         GetObjectPos(balloon,X,Y,Z);
  32.         printf("area 2 | %f %f %f",X, Y, Z);
  33.         if(X == 1440.15308 && Y == 1768.91309 && Z == 9.81221)
  34.         {
  35.             SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  36.             bvar = 3;
  37.             KillTimer(ballonchecker);
  38.             SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  39.         }
  40.       }
  41.       case 3: {
  42.         new Float:X,Float:Y,Float:Z;
  43.         GetObjectPos(balloon,X,Y,Z);
  44.         printf("area 3 | %f %f %f",X, Y, Z);
  45.         if(X == 1964.4941 && Y == 1916.7698 && Z == 129.9168)
  46.         {
  47.             SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  48.             bvar = 4;
  49.             KillTimer(ballonchecker);
  50.             SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  51.         }
  52.       }
  53.       case 4: {
  54.         new Float:X,Float:Y,Float:Z;
  55.         GetObjectPos(balloon,X,Y,Z);
  56.         printf("area 4 | %f %f %f",X, Y, Z);
  57.         if(X == 2004.5236 && Y == 1006.7667 && Z == 38.0707)
  58.         {
  59.             SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  60.             bvar = 5;
  61.             KillTimer(ballonchecker);
  62.             SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  63.         }
  64.       }
  65.       case 5: {
  66.         new Float:X,Float:Y,Float:Z;
  67.         GetObjectPos(balloon,X,Y,Z);
  68.         printf("area 5 | %f %f %f",X, Y, Z);
  69.         if(X == -1605.94800 && Y == -177.69073 && Z == 13.53112)
  70.         {
  71.             SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  72.             bvar = 1;
  73.             KillTimer(ballonchecker);
  74.             SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  75.         }
  76.       }
  77.    }
  78. }
  79.  
  80.  
  81. forward public BallonChck(WHAT);
  82. public BallonChck(WHAT) {
  83.    switch(WHAT) {
  84.       case 0: {
  85.          SendClientMessageToAll( 0xFFFFFFFF, "{FF0000}[INFO]{0066ff} Balloon started it's trip to Next station in 20 seconds! /Balloon!");
  86.          bvar = 1;
  87.          SetTimerEx("BallonChck", 20 * 1000, 0, "i", bvar);
  88.       }
  89.       case 1: {
  90.           MoveObject( balloon, -274.62369, 1522.53552, 88.20000, 10.0);//10.0
  91.           ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
  92.       }
  93.       case 2: {
  94.           MoveObject( balloon,  1440.15308, 1768.91309, 9.81221, 12.0);
  95.           ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
  96.       }
  97.       case 3: {
  98.           MoveObject(balloon, 1964.4941, 1916.7698, 129.9168, 12.0);
  99.           ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
  100.       }
  101.       case 4: {
  102.          MoveObject(balloon,2004.5236, 1006.7667, 38.0707, 12.0);
  103.          ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
  104.       }
  105.       case 5: {
  106.          MoveObject(balloon,-1605.94800, -177.69073, 13.53112, 12.0);//12.0
  107.          ballonchecker = SetTimerEx("Checker", 2500, 1, "id", balloon,bvar);
  108.       }
  109.    }
  110. }
Advertisement
Add Comment
Please, Sign In to add comment