Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 8.77 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4. #define COLOR_ORANGE 0xFF9900AA
  5. #define COLOR_RED 0xAA3333AA
  6.  
  7.  
  8. #define RannaCheckPoint1 1946.1525,-2047.4603,12.9842
  9. #define RannaCheckPoint2 1887.2511,-2025.6620,12.9907
  10. #define RannaCheckPoint3 1801.9717,-2108.4243,12.9782
  11. #define RannaCheckPoint4 1712.8094,-2108.2202,12.9778
  12. #define RannaCheckPoint5 1758.9286,-2117.8645,13.1443
  13. #define RannaCheckPoint6 2249.7629,-1899.5115,13.1621
  14. #define RannaCheckPoint7 2273.7979,-1899.1754,12.9112
  15. #define RannaCheckPoint8 2464.2188,-2014.2488,12.8764
  16. #define RannaCheckPoint9 2487.6382,-2013.8530,12.8765
  17. #define RannaCheckPoint10 2508.4534,-2005.0922,12.8816
  18. #define RannaCheckPoint11 2394.3926,-1727.6661,12.9778
  19. #define RannaCheckPoint12 2385.1702,-1663.5616,12.9824
  20. #define RannaCheckPoint13 2385.1702,-1663.5616,12.9824
  21. #define RannaCheckPoint14 2385.1702,-1663.5616,12.9824
  22. #define RannaCheckPoint15 2385.1702,-1663.5616,12.9824
  23. #define RannaCheckPoint16 2385.1702,-1663.5616,12.9824
  24. #define RannaCheckPoint17 2385.1702,-1663.5616,12.9824
  25. #define RannaCheckPoint18 2385.1702,-1663.5616,12.9824
  26. #define RannaCheckPoint19 2385.1702,-1663.5616,12.9824
  27. #define RannaCheckPoint20 2385.1702,-1663.5616,12.9824
  28. #define RannaCheckPoint21 2385.1702,-1663.5616,12.9824
  29. #define RannaCheckPoint22 2385.1702,-1663.5616,12.9824
  30. #define RannaCheckPoint23 2385.1702,-1663.5616,12.9824
  31. #define RannaCheckPoint24 2385.1702,-1663.5616,12.9824
  32. #define RannaCheckPoint25 2385.1702,-1663.5616,12.9824
  33. #define RannaCheckPoint26 2385.1702,-1663.5616,12.9824
  34. #define RannaCheckPoint27 2385.1702,-1663.5616,12.9824
  35. #define RannaCheckPoint28 2385.1702,-1663.5616,12.9824
  36. #define RannaCheckPoint29 2385.1702,-1663.5616,12.9824
  37. #define RannaCheckPoint30 2385.1702,-1663.5616,12.9824
  38. #define RannaCheckPoint31 2385.1702,-1663.5616,12.9824
  39. #define RannaCheckPoint32 2385.1702,-1663.5616,12.9824
  40. #define RannaCheckPoint33 2385.1702,-1663.5616,12.9824
  41. #define RannaCheckPoint34 2385.1702,-1663.5616,12.9824
  42. #define RannaCheckPoint35 2385.1702,-1663.5616,12.9824
  43. #define RannaCheckPoint36 2385.1702,-1663.5616,12.9824
  44. #define RannaCheckPoint37 2385.1702,-1663.5616,12.9824
  45. #define RannaCheckPoint38 2385.1702,-1663.5616,12.9824
  46. #define RannaCheckPoint39 2385.1702,-1663.5616,12.9824
  47. #define RannaLõppCheckPoint 0,0,0
  48.  
  49. new ranna;
  50.  
  51. public OnFilterScriptInit()
  52. {
  53. //MASINAD SIIA
  54. }
  55.  
  56. public OnPlayerEnterCheckpoint(playerid)
  57. {
  58. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574)
  59.    {
  60.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint1))
  61.      {
  62.           SetPlayerCheckpoint(playerid, RannaCheckPoint2, 7.0);
  63.          }
  64.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint2))
  65.      {
  66.           SetPlayerCheckpoint(playerid, RannaCheckPoint3, 7.0);
  67.          }
  68.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint3))
  69.      {
  70.           SetPlayerCheckpoint(playerid, RannaCheckPoint4, 7.0);
  71.          }
  72.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint4))
  73.      {
  74.           SetPlayerCheckpoint(playerid, RannaCheckPoint5, 7.0);
  75.          }
  76.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint5))
  77.      {
  78.           SetPlayerCheckpoint(playerid, RannaCheckPoint6, 7.0);
  79.          }
  80.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint6))
  81.      {
  82.           SetPlayerCheckpoint(playerid, RannaCheckPoint7, 7.0);
  83.          }
  84.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint7))
  85.      {
  86.           SetPlayerCheckpoint(playerid, RannaCheckPoint8, 7.0);
  87.          }
  88.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint8))
  89.      {
  90.           SetPlayerCheckpoint(playerid, RannaCheckPoint9, 7.0);
  91.          }
  92.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint9))
  93.      {
  94.           SetPlayerCheckpoint(playerid, RannaCheckPoint10, 7.0);
  95.          }
  96.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint10))
  97.      {
  98.           SetPlayerCheckpoint(playerid, RannaCheckPoint11, 7.0);
  99.          }
  100.          if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint11))
  101.      {
  102.           SetPlayerCheckpoint(playerid, RannaCheckPoint12, 7.0);
  103.          }
  104.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint12))
  105.      {
  106.           SetPlayerCheckpoint(playerid, RannaCheckPoint13, 7.0);
  107.          }
  108.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint13))
  109.      {
  110.           SetPlayerCheckpoint(playerid, RannaCheckPoint14, 7.0);
  111.          }
  112.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint14))
  113.      {
  114.           SetPlayerCheckpoint(playerid, RannaCheckPoint15, 7.0);
  115.          }
  116.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint15))
  117.      {
  118.           SetPlayerCheckpoint(playerid, RannaCheckPoint16, 7.0);
  119.          }
  120.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint16))
  121.      {
  122.           SetPlayerCheckpoint(playerid, RannaCheckPoint17, 7.0);
  123.          }
  124.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint17))
  125.      {
  126.           SetPlayerCheckpoint(playerid, RannaCheckPoint18, 7.0);
  127.          }
  128.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint18))
  129.      {
  130.           SetPlayerCheckpoint(playerid, RannaCheckPoint19, 7.0);
  131.          }
  132.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint19))
  133.      {
  134.           SetPlayerCheckpoint(playerid, RannaCheckPoint20, 7.0);
  135.          }
  136.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint20))
  137.      {
  138.           SetPlayerCheckpoint(playerid, RannaCheckPoint21, 7.0);
  139.          }
  140.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint21))
  141.      {
  142.           SetPlayerCheckpoint(playerid, RannaCheckPoint22, 7.0);
  143.          }
  144.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint22))
  145.      {
  146.           SetPlayerCheckpoint(playerid, RannaCheckPoint23, 7.0);
  147.          }
  148.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint23))
  149.      {
  150.           SetPlayerCheckpoint(playerid, RannaCheckPoint24, 7.0);
  151.          }
  152.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint24))
  153.      {
  154.           SetPlayerCheckpoint(playerid, RannaCheckPoint25, 7.0);
  155.          }
  156.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint25))
  157.      {
  158.           SetPlayerCheckpoint(playerid, RannaCheckPoint26, 7.0);
  159.          }
  160.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint26))
  161.      {
  162.           SetPlayerCheckpoint(playerid, RannaCheckPoint27, 7.0);
  163.          }
  164.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint27))
  165.      {
  166.           SetPlayerCheckpoint(playerid, RannaCheckPoint28, 7.0);
  167.          }
  168.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint28))
  169.      {
  170.           SetPlayerCheckpoint(playerid, RannaCheckPoint29, 7.0);
  171.          }
  172.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint29))
  173.      {
  174.           SetPlayerCheckpoint(playerid, RannaCheckPoint30, 7.0);
  175.          }
  176.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint30))
  177.      {
  178.           SetPlayerCheckpoint(playerid, RannaCheckPoint31, 7.0);
  179.          }
  180.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint31))
  181.      {
  182.           SetPlayerCheckpoint(playerid, RannaCheckPoint32, 7.0);
  183.          }
  184.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint32))
  185.      {
  186.           SetPlayerCheckpoint(playerid, RannaCheckPoint33, 7.0);
  187.          }
  188.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint33))
  189.      {
  190.           SetPlayerCheckpoint(playerid, RannaCheckPoint34, 7.0);
  191.          }
  192.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint34))
  193.      {
  194.           SetPlayerCheckpoint(playerid, RannaCheckPoint35, 7.0);
  195.          }
  196.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint35))
  197.      {
  198.           SetPlayerCheckpoint(playerid, RannaCheckPoint36, 7.0);
  199.          }
  200.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint36))
  201.      {
  202.           SetPlayerCheckpoint(playerid, RannaCheckPoint37, 7.0);
  203.          }
  204.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint37))
  205.      {
  206.           SetPlayerCheckpoint(playerid, RannaCheckPoint38, 7.0);
  207.          }
  208.      if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint38))
  209.      {
  210.           SetPlayerCheckpoint(playerid, RannaCheckPoint39, 7.0);
  211.          }
  212.          if (IsPlayerInRangeOfPoint(playerid, 7.0,RannaCheckPoint39))
  213.      {
  214.         SetPlayerCheckpoint(playerid, RannaLõppCheckPoint, 7.0);
  215.                 SendClientMessage(playerid, -1, "Teenisid 575 SAK'i.");
  216.                 new veh;
  217.                 veh = GetPlayerVehicleID(playerid);
  218.                 SetVehicleToRespawn(veh);
  219.                 DisablePlayerCheckpoint(playerid);
  220.                 ranna = 0;
  221.      }
  222.          }
  223. }
  224.  
  225. public OnPlayerDeath(playerid, killerid, reason)
  226. {
  227.           DisablePlayerCheckpoint(playerid);
  228.           ranna = 0;
  229.           return 1;
  230. }
  231. CMD:rannavalve(playerid, params[])
  232.         {
  233.                 if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 574) return SendClientMessage(playerid, COLOR_ORANGE,"Sa pead olema rannavalve paadi roolis.");
  234.         {
  235.             ranna = 1;
  236.                     SetPlayerCheckpoint(playerid, RannaCheckPoint1, 3.0);
  237.                         SendClientMessage(playerid, -1, "Alustasid tööd rannavalves");
  238.             }
  239.             return 1;
  240. }