SHARE
TWEET

Untitled

a guest Jun 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define AbastecerBar1 849.0104,-594.9081,18.3429 // AbastecerBar1
  2. #define AbastecerBar2 844.6652,-576.0863,16.7795 // AbastecerBar2
  3. #define AbastecerBar3 812.0156,-528.1701,16.3611 // AbastecerBar3
  4. #define AbastecerBar4 738.1563,-528.2567,16.3582 // AbastecerBar4
  5. #define AbastecerBar5 697.5100,-528.3793,16.3596 // AbastecerBar5
  6. #define AbastecerBar6 684.3304,-499.7814,16.3627 // AbastecerBar6
  7. #define AbastecerBar7 657.0000,-483.0492,16.3595 // AbastecerBar7
  8. #define AbastecerBar8 644.9866,-466.7907,16.3611 // AbastecerBar8
  9. #define AbastecerBar9 666.2365,-458.2439,16.5095 // AbastecerBar9 //Freeze
  10. #define AbastecerBar10 645.1132,-438.6611,16.3616 // AbastecerBar10
  11. #define AbastecerBar11 602.2043,-411.8622,20.4018 // AbastecerBar11
  12. #define AbastecerBar12 484.9667,-410.3576,28.3791 // AbastecerBar12
  13. #define AbastecerBar13 481.9077,-368.7208,29.9583 // AbastecerBar13
  14. #define AbastecerBar14 509.5082,-256.1921,39.3556 // AbastecerBar14
  15. #define AbastecerBar15 554.8101,-147.0925,36.5073 // AbastecerBar15
  16. #define AbastecerBar16 782.6442,-168.1699,18.6857 // AbastecerBar16
  17. #define AbastecerBar17 1116.0038,-189.1192,41.7939 // AbastecerBar17
  18. #define AbastecerBar18 1294.0389,-88.7725,36.7782 // AbastecerBar18
  19. #define AbastecerBar19 1278.4165,-43.7238,32.4872 // AbastecerBar19
  20. #define AbastecerBar20 1257.1619,167.4786,19.6094 // AbastecerBar20
  21. #define AbastecerBar21 1247.5162,197.3042,19.6507 // AbastecerBar21 //Freeze
  22. #define AbastecerBar22 1227.8044,202.3905,19.5804 // AbastecerBar22
  23. #define AbastecerBar23 1239.6981,254.6378,19.5813 // AbastecerBar23
  24. #define AbastecerBar24 1218.4723,283.5608,19.5807 // AbastecerBar24
  25. #define AbastecerBar25 1222.2051,338.8849,19.5829 // AbastecerBar25
  26. #define AbastecerBar26 1257.2361,337.4402,19.5796 // AbastecerBar26
  27. #define AbastecerBar27 1283.5100,352.6919,19.5814 // AbastecerBar27
  28. #define AbastecerBar28 1323.8628,362.7084,19.5784 // AbastecerBar28
  29. #define AbastecerBar29 1325.3518,344.1957,19.6516 // AbastecerBar29 //Freeze
  30. #define AbastecerBar30 1320.8979,327.2104,19.5772 // AbastecerBar30
  31. #define AbastecerBar31 1293.0979,264.3482,19.5833 // AbastecerBar31
  32. #define AbastecerBar32 1280.9640,235.6815,19.5803 // AbastecerBar32
  33. #define AbastecerBar33 1295.4249,219.4850,19.7283 // AbastecerBar33 //Freeze
  34. #define AbastecerBar34 1284.2494,231.8172,19.5800 // AbastecerBar34
  35. #define AbastecerBar35 1331.1194,228.2101,19.5796 // AbastecerBar35
  36. #define AbastecerBar36 1519.1194,117.5723,30.1988 // AbastecerBar36
  37. #define AbastecerBar37 1347.2083,-35.0075,34.9058 // AbastecerBar37
  38. #define AbastecerBar38 1096.4565,-184.6878,40.9337 // AbastecerBar38
  39. #define AbastecerBar39 780.9948,-163.3015,18.8133 // AbastecerBar39
  40. #define AbastecerBar40 544.0634,-138.9105,37.4107 // AbastecerBar40
  41. #define AbastecerBar41 493.6090,-297.0882,41.0974 // AbastecerBar41
  42. #define AbastecerBar42 468.6460,-392.1846,27.8400 // AbastecerBar42
  43. #define AbastecerBar43 519.4639,-417.0827,28.8187 // AbastecerBar43
  44. #define AbastecerBar44 639.0113,-466.5937,16.3620 // AbastecerBar44
  45. #define AbastecerBar45 671.4703,-486.8051,16.3629 // AbastecerBar45
  46. #define AbastecerBar46 679.4968,-515.0162,16.3619 // AbastecerBar46
  47. #define AbastecerBar47 708.3887,-531.9824,16.3587 // AbastecerBar47
  48. #define AbastecerBar48 844.3234,-590.2318,17.8707 // AbastecerBar48
  49.  
  50.  
  51.  
  52.  
  53. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 456)
  54.     {
  55.         AbastecerBar[playerid]++;
  56.         if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar1) && AbastecerBar[playerid] == 1)
  57.             SetPlayerCheckpoint(playerid, AbastecerBar2, 7.0);
  58.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar2) && AbastecerBar[playerid] == 2)
  59.                 SetPlayerCheckpoint(playerid, AbastecerBar3, 7.0);
  60.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar3) && AbastecerBar[playerid] == 3)
  61.                 SetPlayerCheckpoint(playerid, AbastecerBar4, 7.0);
  62.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar4) && AbastecerBar[playerid] == 4)
  63.                 SetPlayerCheckpoint(playerid, AbastecerBar5, 7.0);
  64.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar5) && AbastecerBar[playerid] == 5)
  65.                 SetPlayerCheckpoint(playerid, AbastecerBar6, 7.0);
  66.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar6) && AbastecerBar[playerid] == 6)
  67.                 SetPlayerCheckpoint(playerid, AbastecerBar7, 7.0);
  68.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar7) && AbastecerBar[playerid] == 7)
  69.                 SetPlayerCheckpoint(playerid, AbastecerBar8, 7.0);
  70.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar8) && AbastecerBar[playerid] == 8)
  71.                 SetPlayerCheckpoint(playerid, AbastecerBar9, 7.0);
  72.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar9) && AbastecerBar[playerid] == 9)
  73.                 SetPlayerCheckpoint(playerid, AbastecerBar10, 7.0);
  74.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar10) && AbastecerBar[playerid] == 10)
  75.                 SetPlayerCheckpoint(playerid, AbastecerBar11, 7.0);
  76.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar11) && AbastecerBar[playerid] == 11)
  77.                 SetPlayerCheckpoint(playerid, AbastecerBar12, 7.0);
  78.             else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar12) && AbastecerBar[playerid] == 12)
  79.                 SetPlayerCheckpoint(playerid, AbastecerBar13, 7.0);
  80.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar13) && AbastecerBar[playerid] == 13)
  81.                 SetPlayerCheckpoint(playerid, AbastecerBar14, 7.0);
  82.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar14) && AbastecerBar[playerid] == 14)
  83.                 SetPlayerCheckpoint(playerid, AbastecerBar15, 7.0);
  84.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar15) && AbastecerBar[playerid] == 15)
  85.                 SetPlayerCheckpoint(playerid, AbastecerBar16, 7.0);
  86.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar16) && AbastecerBar[playerid] == 16)
  87.                 SetPlayerCheckpoint(playerid, AbastecerBar17, 7.0);
  88.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar17) && AbastecerBar[playerid] == 17)
  89.                 SetPlayerCheckpoint(playerid, AbastecerBar18, 7.0);
  90.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar18) && AbastecerBar[playerid] == 18)
  91.                 SetPlayerCheckpoint(playerid, AbastecerBar19, 7.0);
  92.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar19) && AbastecerBar[playerid] == 19)
  93.                 SetPlayerCheckpoint(playerid, AbastecerBar20, 7.0);
  94.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar20) && AbastecerBar[playerid] == 20)
  95.                 SetPlayerCheckpoint(playerid, AbastecerBar21, 7.0);
  96.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar21) && AbastecerBar[playerid] == 21)
  97.                 SetPlayerCheckpoint(playerid, AbastecerBar22, 7.0);
  98.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar22) && AbastecerBar[playerid] == 22)
  99.                 SetPlayerCheckpoint(playerid, AbastecerBar23, 7.0);
  100.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar23) && AbastecerBar[playerid] == 23)
  101.                 SetPlayerCheckpoint(playerid, AbastecerBar24, 7.0);
  102.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar24) && AbastecerBar[playerid] == 24)
  103.                 SetPlayerCheckpoint(playerid, AbastecerBar25, 7.0);
  104.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar25) && AbastecerBar[playerid] == 25)
  105.                 SetPlayerCheckpoint(playerid, AbastecerBar26, 7.0);
  106.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar26) && AbastecerBar[playerid] == 26)
  107.                 SetPlayerCheckpoint(playerid, AbastecerBar27, 7.0);
  108.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar27) && AbastecerBar[playerid] == 27)
  109.                 SetPlayerCheckpoint(playerid, AbastecerBar28, 7.0);
  110.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar28) && AbastecerBar[playerid] == 28)
  111.                 SetPlayerCheckpoint(playerid, AbastecerBar29, 7.0);
  112.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar29) && AbastecerBar[playerid] == 29)
  113.                 SetPlayerCheckpoint(playerid, AbastecerBar30, 7.0);
  114.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar30) && AbastecerBar[playerid] == 30)
  115.                 SetPlayerCheckpoint(playerid, AbastecerBar31, 7.0);
  116.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar31) && AbastecerBar[playerid] == 31)
  117.                 SetPlayerCheckpoint(playerid, Agricultura32, 7.0);
  118.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar32) && AbastecerBar[playerid] == 32)
  119.             SetPlayerCheckpoint(playerid, AbastecerBar33, 7.0);
  120.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar33) && AbastecerBar[playerid] == 33)
  121.                 SetPlayerCheckpoint(playerid, AbastecerBar34, 7.0);
  122.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar34) && AbastecerBar[playerid] == 34)
  123.                 SetPlayerCheckpoint(playerid, AbastecerBar35, 7.0);
  124.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar35) && AbastecerBar[playerid] == 35)
  125.             SetPlayerCheckpoint(playerid, AbastecerBar36, 7.0);
  126.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar36) && AbastecerBar[playerid] == 36)
  127.             SetPlayerCheckpoint(playerid, AbastecerBar37, 7.0);
  128.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar37) && AbastecerBar[playerid] == 37)
  129.                 SetPlayerCheckpoint(playerid, AbastecerBar38, 7.0);
  130.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar38) && AbastecerBar[playerid] == 38)
  131.                 SetPlayerCheckpoint(playerid, AbastecerBar39, 7.0);
  132.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar39) && AbastecerBar[playerid] == 39)
  133.                 SetPlayerCheckpoint(playerid, AbastecerBar40, 7.0);
  134.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar40) && AbastecerBar[playerid] == 40)
  135.                 SetPlayerCheckpoint(playerid, AbastecerBar41, 7.0);
  136.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar41) && AbastecerBar[playerid] == 41)
  137.                 SetPlayerCheckpoint(playerid, AbastecerBar42, 7.0);
  138.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar42) && AbastecerBar[playerid] == 42)
  139.                 SetPlayerCheckpoint(playerid, Agricultura43, 7.0);
  140.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar43) && AbastecerBar[playerid] == 43)
  141.             SetPlayerCheckpoint(playerid, AbastecerBar44, 7.0);
  142.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar44) && AbastecerBar[playerid] == 44)
  143.                 SetPlayerCheckpoint(playerid, AbastecerBar45, 7.0);
  144.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar45) && AbastecerBar[playerid] == 45)
  145.                 SetPlayerCheckpoint(playerid, AbastecerBar46, 7.0);
  146.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar46) && AbastecerBar[playerid] == 46)
  147.             SetPlayerCheckpoint(playerid, AbastecerBar47, 7.0);
  148.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar47) && AbastecerBar[playerid] == 47)
  149.                 SetPlayerCheckpoint(playerid, AbastecerBar48, 7.0);
  150.         else if (IsPlayerInRangeOfPoint(playerid, 7.0,AbastecerBar48) && AbastecerBar[playerid] == 48)
  151.             {
  152.          GivePlayerCash(playerid, 50);
  153.          GameTextForPlayer(playerid, "~g~Ganhaste 50$ pela rota.", 3000, 3);
  154.          new veh;
  155.          veh = GetPlayerVehicleID(playerid);
  156.          SetVehicleToRespawn(veh);
  157.          EngineStatus[GetPlayerVehicleID(playerid)] == 0;
  158.          DisablePlayerCheckpoint(playerid);
  159.          colheita = 0;
  160.      }
  161.    }
RAW Paste Data
Top