Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2015
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.87 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4.  
  5. new Ccp[MAX_PLAYERS];
  6. new specialcar;
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.  
  11. print("\n--------------------------------------");
  12. print(" L O A D E D ");
  13. print(" Filtescript made ");
  14. print(" by: ZaBraNjeNi ");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. print("\n--------------------------------------");
  22. print(" U N - L O A D E D ");
  23. print(" Filtescript made ");
  24. print(" by: ZaBraNjeNi ");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. public OnPlayerConnect(playerid)
  30. {
  31. CreateObject(3881, 1960.08521, -1247.36475, 20.76262, 0.00000, 0.00000, 270.42389);
  32. CreateObject(2162, 1960.18982, -1249.15149, 19.00963, 0.00000, 0.00000, 0.00000);
  33. CreateObject(2164, 1957.84521, -1249.26672, 19.00945, 0.00000, 0.00000, 0.00000);
  34. CreateObject(1671, 1959.14246, -1247.47949, 19.31270, 0.00000, 0.00000, 160.56171);
  35. CreateObject(2008, 1958.56616, -1246.74573, 19.00997, 0.00000, 0.00000, 0.00000);
  36.  
  37. specialcar = CreateVehicle(572, 1946.6841, -1249.0542, 19.1499, 0.0000, -1, -1, 100);
  38. specialcar = CreateVehicle(572, 1953.5132, -1248.9252, 19.1499, 0.0000, -1, -1, 100);
  39. specialcar = CreateVehicle(572, 1951.4293, -1248.9253, 19.1499, 0.0000, -1, -1, 100);
  40. specialcar = CreateVehicle(572, 1949.1097, -1248.8417, 19.1499, 0.0000, -1, -1, 100);
  41.  
  42. return 1;
  43. }
  44.  
  45. COMMAND:start(playerid, cmdtext)
  46. {
  47. if(IsPlayerInVehicle(playerid, specialcar))
  48. {
  49. Ccp[playerid] = 1;
  50. SetPlayerCheckpoint(playerid, 1996.2595,-1234.9159,20.6417, 3.0);
  51. SendClientMessage(playerid, 0xFFFFFFFF, "You started a mission. Please follow the checkpoints.");
  52. }
  53. else
  54. {
  55. SendClientMessage(playerid, 0xFFFFFFFF, "You must be in special car.");
  56. }
  57. return 1;
  58. }
  59.  
  60. public OnPlayerEnterCheckpoint(playerid)
  61. {
  62. if(Ccp[playerid] == 1)
  63. {
  64. DisablePlayerCheckpoint(playerid);
  65. Ccp[playerid] = 2;
  66. SetPlayerCheckpoint(playerid, 2039.1515,-1245.3955,23.3346, 3.0);
  67. GameTextForPlayer(playerid, "1/15", 1000, 5);
  68. return 1;
  69. }
  70. if(Ccp[playerid] == 2)
  71. {
  72. DisablePlayerCheckpoint(playerid);
  73. Ccp[playerid] = 3;
  74. SetPlayerCheckpoint(playerid, 2051.4465,-1200.9730,23.5868, 3.0);
  75. GameTextForPlayer(playerid, "2/15", 1000, 5);
  76. return 1;
  77. }
  78. if(Ccp[playerid] == 3)
  79. {
  80.  
  81. DisablePlayerCheckpoint(playerid);
  82. Ccp[playerid] = 4;
  83. SetPlayerCheckpoint(playerid, 2052.9321,-1155.9016,23.5725, 3.0);
  84. GameTextForPlayer(playerid, "3/15", 1000, 5);
  85. return 1;
  86. }
  87. if(Ccp[playerid] == 4)
  88. {
  89.  
  90. DisablePlayerCheckpoint(playerid);
  91. Ccp[playerid] = 5;
  92. SetPlayerCheckpoint(playerid, 2003.2378,-1148.3591,24.2759, 3.0);
  93. GameTextForPlayer(playerid, "4/15", 1000, 5);
  94. return 1;
  95. }
  96. if(Ccp[playerid] == 5)
  97. {
  98.  
  99. DisablePlayerCheckpoint(playerid);
  100. Ccp[playerid] = 6;
  101. SetPlayerCheckpoint(playerid, 1973.5219,-1157.1123,20.9533, 3.0);
  102. GameTextForPlayer(playerid, "5/15", 1000, 5);
  103. return 1;
  104. }
  105. if(Ccp[playerid] == 6)
  106. {
  107.  
  108. DisablePlayerCheckpoint(playerid);
  109. Ccp[playerid] = 7;
  110. SetPlayerCheckpoint(playerid, 1909.2423,-1147.4587,24.3805, 3.0);
  111. GameTextForPlayer(playerid, "6/15", 1000, 5);
  112. return 1;
  113. }
  114. if(Ccp[playerid] == 7)
  115. {
  116.  
  117. DisablePlayerCheckpoint(playerid);
  118. Ccp[playerid] = 8;
  119. SetPlayerCheckpoint(playerid, 1876.3091,-1188.9344,22.7149, 3.0);
  120. GameTextForPlayer(playerid, "7/15", 1000, 5);
  121. return 1;
  122. }
  123. if(Ccp[playerid] == 8)
  124. {
  125.  
  126. DisablePlayerCheckpoint(playerid);
  127. Ccp[playerid] = 9;
  128. SetPlayerCheckpoint(playerid, 1867.5544,-1242.3293,14.3237, 3.0);
  129. GameTextForPlayer(playerid, "8/15", 1000, 5);
  130. return 1;
  131. }
  132. if(Ccp[playerid] == 9)
  133. {
  134.  
  135. DisablePlayerCheckpoint(playerid);
  136. Ccp[playerid] = 10;
  137. SetPlayerCheckpoint(playerid, 1917.8446,-1215.5663,19.4709, 3.0);
  138. GameTextForPlayer(playerid, "9/15", 1000, 5);
  139. return 1;
  140. }
  141. if(Ccp[playerid] == 10)
  142. {
  143.  
  144. DisablePlayerCheckpoint(playerid);
  145. Ccp[playerid] = 11;
  146. SetPlayerCheckpoint(playerid, 2010.8773,-1214.3700,20.2992, 3.0);
  147. GameTextForPlayer(playerid, "10/15", 1000, 5);
  148. return 1;
  149. }
  150. if(Ccp[playerid] == 11)
  151. {
  152.  
  153. DisablePlayerCheckpoint(playerid);
  154. Ccp[playerid] = 12;
  155. SetPlayerCheckpoint(playerid, 2026.5521,-1193.5040,21.4536, 3.0);
  156. GameTextForPlayer(playerid, "11/15", 1000, 5);
  157. return 1;
  158. }
  159. if(Ccp[playerid] == 12)
  160. {
  161.  
  162. DisablePlayerCheckpoint(playerid);
  163. Ccp[playerid] = 13;
  164. SetPlayerCheckpoint(playerid, 2003.3975,-1174.7896,20.4751, 3.0);
  165. GameTextForPlayer(playerid, "12/15", 1000, 5);
  166. return 1;
  167. }
  168. if(Ccp[playerid] == 13)
  169. {
  170.  
  171. DisablePlayerCheckpoint(playerid);
  172. Ccp[playerid] = 14;
  173. SetPlayerCheckpoint(playerid, 1974.7795,-1177.5264,20.0234, 3.0);
  174. GameTextForPlayer(playerid, "13/15", 1000, 5);
  175. return 1;
  176. }
  177. if(Ccp[playerid] == 14)
  178. {
  179. DisablePlayerCheckpoint(playerid);
  180. Ccp[playerid] = 15;
  181. SetPlayerCheckpoint(playerid, 1911.6196,-1178.9412,22.8399, 3.0);
  182. GameTextForPlayer(playerid, "14/15", 1000, 5);
  183. return 1;
  184. }
  185. if(Ccp[playerid] == 15)
  186. {
  187. DisablePlayerCheckpoint(playerid);
  188. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Congratulations", "Reward: 100$\nBonus: 40$", "OK", "");
  189. GivePlayerMoney(playerid, 140);
  190. return 1;
  191. }
  192. return 1;
  193. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement