Advertisement
Guest User

crash_trackman

a guest
Apr 22nd, 2009
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. #include <a_samp>
  2. #include <cps>
  3. #include <colours>
  4. #include <dcmd>
  5. new gate1;
  6. new gate2;
  7. new cp1;
  8. new cp2;
  9. new cp3;
  10. new timer;
  11. forward close();
  12. #define PRICE 250
  13. #define FILTERSCRIPT
  14.  
  15. #if defined FILTERSCRIPT
  16.  
  17. public OnFilterScriptInit()
  18. {
  19. StartSystem();
  20. print("\n A crash_trackman production (FS): ");
  21. print(" The Airport Gates ");
  22. print(" Have fun with this FS! \n ");
  23. gate1 = CreateObject(988, 1958.777588, -2189.858154, 13.585938, 0.0000, 0.0000, 180.0000);
  24. gate2 = CreateObject(988, 1964.325195, -2189.832764, 13.585938, 0.0000, 0.0000, 180.0000);
  25. CreateObject(986, 1571.236084, -2659.447754, 16.260414, 0.0000, 0.0000, 0.0000);
  26. CreateObject(986, 1563.292969, -2659.226563, 16.306736, 0.0000, 0.0000, 0.0000);
  27. CreateObject(986, 1555.208374, -2659.226563, 16.274569, 0.0000, 0.0000, 0.0000);
  28. CreateObject(986, 1547.089478, -2659.238281, 16.260414, 0.0000, 0.0000, 0.0000);
  29. CreateObject(986, 1538.947632, -2659.226563, 16.267395, 0.0000, 0.0000, 0.0000);
  30. CreateObject(986, 1530.792725, -2659.246094, 16.260414, 0.0000, 0.0000, 0.0000);
  31. CreateObject(986, 1522.754272, -2659.243164, 16.260414, 0.0000, 0.0000, 0.0000);
  32. CreateObject(986, 1514.610229, -2659.238770, 16.293365, 0.0000, 0.0000, 0.0000);
  33. CreateObject(1536, 1829.703125, -2243.784668, 21.760675, 0.0000, 0.0000, 270.0000);
  34. CreateObject(1536, 1812.220703, -2342.461182, 22.730108, 0.0000, 0.0000, 0.0000);
  35. CreateObject(8613, 1890.906616, -2261.932861, 16.918297, 0.0000, 0.0000, 56.2500);
  36. CreateObject(1656, 1887.539795, -2256.336182, 20.887722, 0.0000, 0.0000, 56.2500);
  37. CreateObject(1656, 1887.499634, -2256.313965, 21.131943, 0.0000, 0.0000, 56.2500);
  38. CreateObject(1656, 1887.486938, -2256.294434, 21.376163, 0.0000, 0.0000, 56.2500);
  39. CreateObject(1656, 1887.464233, -2256.277588, 21.620384, 0.0000, 0.0000, 56.2500);
  40. CreateObject(1656, 1887.822266, -2256.532959, 20.802073, 0.0000, 0.0000, 56.2500);
  41. CreateObject(1656, 1887.817261, -2256.544434, 21.046293, 0.0000, 0.0000, 56.2500);
  42. CreateObject(1656, 1887.812500, -2256.557129, 21.290514, 0.0000, 0.0000, 56.2500);
  43. CreateObject(1656, 1888.168091, -2256.762207, 20.698874, 0.0000, 0.0000, 56.2500);
  44. CreateObject(1656, 1888.147705, -2256.763916, 20.943094, 0.0000, 0.0000, 56.2500);
  45. CreateObject(1656, 1888.511597, -2256.996338, 20.595427, 0.0000, 0.0000, 56.2500);
  46. CreateObject(985, 1951.387207, -2181.703857, 17.321568, 0.0000, 0.0000, 270.0000);
  47. CreateObject(985, 1951.387207, -2185.828613, 17.251568, 0.0000, 0.0000, 270.0000);
  48.  
  49.  
  50. cp1 = CreateCheckpoint(-1, 1957.6169,-2181.4404,13.5469, 3, 15);
  51. cp2 = CreateCheckpoint(-1, 1831.1742,-2244.5115,22.7496, 2, 30);
  52. cp3 = CreateCheckpoint(-1, 1812.8190,-2342.0168,23.6862, 2, 15);
  53. return 1;
  54. }
  55.  
  56. public OnFilterScriptExit()
  57. {
  58. return 1;
  59. }
  60.  
  61. #else
  62.  
  63. main()
  64. {
  65. print("\n----------------------------------");
  66. print(" Blank Gamemode by your name here");
  67. print("----------------------------------\n");
  68. }
  69.  
  70. #endif
  71.  
  72. public OnGameModeInit()
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnGameModeExit()
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerRequestClass(playerid, classid)
  83. {
  84. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  85. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  86. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  87. return 1;
  88. }
  89.  
  90. public OnPlayerRequestSpawn(playerid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerConnect(playerid)
  96. {
  97. ClearVars(playerid);
  98. SyncCheckpoints(playerid);
  99. return 1;
  100. }
  101.  
  102. public OnPlayerDisconnect(playerid, reason)
  103. {
  104. return 1;
  105. }
  106.  
  107. public OnPlayerSpawn(playerid)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnPlayerDeath(playerid, killerid, reason)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnVehicleSpawn(vehicleid)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnVehicleDeath(vehicleid, killerid)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerText(playerid, text[])
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerPrivmsg(playerid, recieverid, text[])
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerCommandText(playerid, cmdtext[])
  138. {
  139. return 0;
  140. }
  141.  
  142. public OnPlayerInfoChange(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerExitVehicle(playerid, vehicleid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerStateChange(playerid, newstate, oldstate)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerEnterCheckpoint(playerid)
  163. {
  164. CheckpointCheck(playerid);
  165. return 1;
  166. }
  167.  
  168. public OnPlayerLeaveCheckpoint(playerid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerEnterRaceCheckpoint(playerid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerLeaveRaceCheckpoint(playerid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnRconCommand(cmd[])
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnObjectMoved(objectid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerObjectMoved(playerid, objectid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerPickUpPickup(playerid, pickupid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnPlayerSelectedMenuRow(playerid, row)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerExitedMenu(playerid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
  214. {
  215. if(streamid == cp1)
  216. {
  217. if(GetPlayerMoney(playerid) >= 250)
  218. {
  219. new amount;
  220. amount = -250;
  221. GivePlayerMoney(playerid, amount);
  222. SendClientMessage(playerid, GREEN, "You have paid 250$ to enter airport.");
  223. MoveObject(gate1, 1953.942017, -2189.912598, 13.620567, 2.5);
  224. MoveObject(gate2, 1969.518311, -2190.141846, 13.585938, 2.5);
  225. timer = SetTimer("close", 7500, false);
  226. return true;
  227. }
  228. else
  229. {
  230. SendClientMessage(playerid, RED, "You havent got enough money to enter the airport! It costs 250$!");
  231. return false;
  232. }
  233. }
  234. else if(streamid == cp2)
  235. {
  236. SetPlayerPos(playerid, 1812.9651,-2337.7554,23.6864);
  237. return true;
  238. }
  239. else if(streamid == cp3)
  240. {
  241. SetPlayerPos(playerid, 1834.3066,-2245.0669,22.7496);
  242. return 1;
  243. }
  244. return 1;
  245. }
  246. public close()
  247. {
  248. MoveObject(gate1, 1958.777588, -2189.858154, 13.585938, 2.5);
  249. MoveObject(gate2, 1964.325195, -2189.832764, 13.585938, 2.5);
  250. KillTimer(timer);
  251. return 1;
  252. }
  253.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement