Guest User

Untitled

a guest
Sep 5th, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.42 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4. #include <a_samp>
  5.  
  6. new FastTCars[8];
  7. new FastTCP[MAX_PLAYERS];
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Blank Filterscript by your name here");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. CreateVehicle(402, 2033.8888, 1321.8954, 10.4785, 0.0000, -1, -1, 100);
  38. FastTCars[0] = CreateVehicle(411, 2772.2271, 1294.6516, 10.4252, 0.0000, 3, -1, 100);
  39. FastTCars[1] = CreateVehicle(411, 2775.4688, 1294.6420, 10.4252, 0.0000, 3, -1, 100);
  40. FastTCars[2] = CreateVehicle(411, 2778.8093, 1294.5774, 10.4252, 0.0000, 3, -1, 100);
  41. FastTCars[3] = CreateVehicle(411, 2781.9294, 1294.5323, 10.4252, 0.0000, 3, -1, 100);
  42. FastTCars[4] = CreateVehicle(411, 2785.0090, 1294.6271, 10.4252, 0.0000, 3, -1, 100);
  43. FastTCars[5] = CreateVehicle(411, 2788.2114, 1294.5825, 10.4252, 0.0000, 3, -1, 100);
  44. FastTCars[6] = CreateVehicle(411, 2791.2881, 1294.8208, 10.4252, 0.0000, 3, -1, 100);
  45. FastTCars[7] = CreateVehicle(411, 2794.8279, 1294.8441, 10.4252, 0.0000, 3, -1, 100);
  46.  
  47. // Don't use these lines if it's a filterscript
  48. SetGameModeText("Blank Script");
  49. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  50. return 1;
  51. }
  52.  
  53. public OnGameModeExit()
  54. {
  55. return 1;
  56. }
  57.  
  58. public OnPlayerRequestClass(playerid, classid)
  59. {
  60. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  61. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  62. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  63. return 1;
  64. }
  65.  
  66. public OnPlayerConnect(playerid)
  67. {
  68. FastTCP[playerid] = 0;
  69. return 1;
  70. }
  71.  
  72. public OnPlayerDisconnect(playerid, reason)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerSpawn(playerid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerDeath(playerid, killerid, reason)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnVehicleSpawn(vehicleid)
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnVehicleDeath(vehicleid, killerid)
  93. {
  94. return 1;
  95. }
  96.  
  97. public OnPlayerText(playerid, text[])
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerCommandText(playerid, cmdtext[])
  103. {
  104. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  105. {
  106. // Do something here
  107. return 1;
  108. }
  109. return 0;
  110. }
  111.  
  112. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnPlayerExitVehicle(playerid, vehicleid)
  118. {
  119. if(vehicleid == FastTCars[0] || (vehicleid == FastTCars[1] || (vehicleid == FastTCars[2] || (vehicleid == FastTCars[3] || (vehicleid == FastTCars[4] || (vehicleid == FastTCars[5] || (vehicleid == FastTCars[6] || (vehicleid == FastTCars[7] ||)
  120. {
  121. DisablePlayerCheckpoint(playerid);
  122. FastTCP[playerid] = 0;
  123. SetVehicleToRespawn(vehicleid);
  124. SendClientMessage(playerid, -1 "Job esuat ai iesit din masina");
  125. }
  126. return 1;
  127. }
  128.  
  129. public OnPlayerStateChange(playerid, newstate, oldstate)
  130. {
  131. if(newstate == PLAYER_STATE_DRIVER)
  132. {
  133. new vehicleid == GetPlayerVehicleID(playerid);
  134. if(vehicleid == FastTCars[0] || (vehicleid == FastTCars[1] || (vehicleid == FastTCars[2] || (vehicleid == FastTCars[3] || (vehicleid == FastTCars[4] || (vehicleid == FastTCars[5] || (vehicleid == FastTCars[6] || (vehicleid == FastTCars[7] ||)
  135. {
  136. FastTCP[playerid] = 1;
  137. DisablePlayerCheckpoint(playerid);
  138. SetPlayerCheckpoint(playerid, 2794.5938, 1315.2356, 10.4252, 4.0);
  139. }
  140. }
  141. return 1;
  142. }
  143.  
  144. public OnPlayerEnterCheckpoint(playerid)
  145. {
  146. if (FastTCP[playerid] == 1)
  147. {
  148. DisablePlayerCheckpoint(playerid);
  149. FastTCP[playerid] = 2;
  150. SetPlayerCheckpoint(playerid, 2488.2488, 1531.5845, 10.8789, 4.0);
  151. }
  152. else if(FastTCP[playerid] == 2)
  153. {
  154. DisablePlayerCheckpoint(playerid);
  155. FastTCP[playerid] = 3;
  156. SetPlayerCheckpoint(playerid, 2335.0706, 1723.4692, 10.8789, 4.0);
  157. }
  158. else if(FastTCP[playerid] == 3)
  159. {
  160. DisablePlayerCheckpoint(playerid);
  161. FastTCP[playerid] = 4;
  162. SetPlayerCheckpoint(playerid, 2038.9993, 1381.4307, 10.8789, 4.0);
  163. }
  164. else if(FastTCP[playerid] == 4)
  165. {
  166. DisablePlayerCheckpoint(playerid);
  167. FastTCP[playerid] = 5;
  168. SetPlayerCheckpoint(playerid, 2580.3320, 1068.3425, 10.8789, 4.0);
  169. }
  170. else if(FastTCP[playerid] == 5)
  171. {
  172. DisablePlayerCheckpoint(playerid);
  173. FastTCP[playerid] = 6;
  174. SetPlayerCheckpoint(playerid, 2793.3716, 1311.1638, 10.8789, 4.0);
  175. }
  176. else if (FastTCP[playerid] ==6)
  177. {
  178. DisablePlayerCheckpoint(playerid);
  179. FastTCP[playerid] = 0;
  180. SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  181. SendClientMessage(playerid, -1, "Ai Terminat cu succes jobul si ai primit bani.");
  182. GivePlayerMoney(playerid, 23500);
  183. }
  184. return 1;
  185. }
  186.  
  187. public OnPlayerLeaveCheckpoint(playerid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerEnterRaceCheckpoint(playerid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerLeaveRaceCheckpoint(playerid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnRconCommand(cmd[])
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerRequestSpawn(playerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnObjectMoved(objectid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerObjectMoved(playerid, objectid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerPickUpPickup(playerid, pickupid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnVehicleMod(playerid, vehicleid, componentid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnPlayerSelectedMenuRow(playerid, row)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerExitedMenu(playerid)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  253. {
  254. return 1;
  255. }
  256.  
  257. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnRconLoginAttempt(ip[], password[], success)
  263. {
  264. return 1;
  265. }
  266.  
  267. public OnPlayerUpdate(playerid)
  268. {
  269. return 1;
  270. }
  271.  
  272. public OnPlayerStreamIn(playerid, forplayerid)
  273. {
  274. return 1;
  275. }
  276.  
  277. public OnPlayerStreamOut(playerid, forplayerid)
  278. {
  279. return 1;
  280. }
  281.  
  282. public OnVehicleStreamIn(vehicleid, forplayerid)
  283. {
  284. return 1;
  285. }
  286.  
  287. public OnVehicleStreamOut(vehicleid, forplayerid)
  288. {
  289. return 1;
  290. }
  291.  
  292. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  293. {
  294. return 1;
  295. }
  296.  
  297. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  298. {
  299. return 1;
  300. }
Advertisement
Add Comment
Please, Sign In to add comment