Advertisement
Guest User

Untitled

a guest
Feb 25th, 2013
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.56 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3.  
  4. // INCLUDES //
  5. #include <a_samp>
  6. #include <ZCMD>
  7. #include <sscanf2>
  8. #include <streamer>
  9.  
  10. // DEFINES //
  11. #define COL_WHITE "{FFFFFF}"
  12. #define COL_YELLOW "{F3FF02}"
  13. #define COL_RED "{F81414}"
  14. #define COL_BLUE "{0000FF}"
  15.  
  16. #define COLOR_BITEM 0xE1B0B0FF
  17. #define COLOR_GRAD1 0xB4B5B7FF
  18. #define COLOR_GRAD2 0xBFC0C2FF
  19. #define COLOR_GRAD3 0xCBCCCEFF
  20. #define COLOR_GRAD4 0xD8D8D8FF
  21. #define COLOR_GRAD5 0xE3E3E3FF
  22. #define COLOR_GRAD6 0xF0F0F0FF
  23. #define COLOR_GREY 0xAFAFAFAA
  24. #define COLOR_GREEN 0x33AA33AA
  25. #define COLOR_RED 0xAA3333AA
  26. #define COLOR_BLACK 0x000001FF
  27. #define COLOR_BLUE 0x007BD0FF
  28. #define COLOR_LIGHTORANGE 0xFFA100FF
  29. #define COLOR_FLASH 0xFF000080
  30. #define COLOR_LIGHTRED 0xFF6347AA
  31. #define COLOR_LIGHTBLUE 0x33CCFFAA
  32. #define COLOR_LIGHTGREEN 0x9ACD32AA
  33. #define COLOR_YELLOW 0xFFFF00AA
  34. #define COLOR_LIGHTYELLOW 0xFFFF91FF
  35. #define COLOR_YELLOW2 0xF5DEB3AA
  36. #define COLOR_WHITE 0xFFFFFFAA
  37. #define COLOR_FADE1 0xE6E6E6E6
  38. #define COLOR_FADE2 0xC8C8C8C8
  39. #define COLOR_FADE3 0xAAAAAAAA
  40. #define COLOR_FADE4 0x8C8C8C8C
  41. #define COLOR_FADE5 0x6E6E6E6E
  42. #define COLOR_PURPLE 0xC2A2DAAA
  43. #define COLOR_DBLUE 0x2641FEAA
  44. #define COLOR_DOC 0xFF8282AA
  45. #define COLOR_DCHAT 0xF0CC00FF
  46. #define COLOR_NEWS 0xFFA500AA
  47. #define COLOR_OOC 0xE0FFFFAA
  48. #define TEAM_BLUE_COLOR 0x8D8DFF00
  49. #define TEAM_GROVE_COLOR 0x00AA00FF
  50. #define TEAM_AZTECAS_COLOR 0x01FCFFC8
  51. #define NEWBIE_COLOR 0x7DAEFFFF
  52. #define SAMP_COLOR 0xAAC4E5FF
  53. #define COLOR_FAMILY 0x00E6FFC8
  54. #define COLOR_DEPARTMENT 0xFFB300C8
  55. #define COLOR_RADIO 0x996892FF
  56. #define COLOR_FBI 0xF097E2FF
  57. #define COLOR_LSPD 0x041DFBC8
  58. #define COLOR_ADMINCHAT 0xFFB300FF
  59.  
  60. // FORWARDS //
  61. forward GiveRandomJob(playerid);
  62. forward GiveDropOff(playerid);
  63.  
  64. // VARIABLES //
  65. new bool:WantsJob[MAX_PLAYERS];
  66. new bool:HasPilotJob[MAX_PLAYERS];
  67. new bool:IsPlayerInJob[MAX_PLAYERS];
  68. new PilotCars[8];
  69. new Checkpoints[8];
  70. new bool:PilotJobs[MAX_PLAYERS][5];
  71. new bool:WantsQuit[MAX_PLAYERS];
  72. new LoadingTimer[MAX_PLAYERS];
  73.  
  74. // PICKUPS //
  75. new jobpickup;
  76.  
  77.  
  78. // STOCKS //
  79. stock IsPilotCar(vehicleid)
  80. {
  81. for(new veh = 0; veh < sizeof(PilotCars); veh++)
  82. {
  83. if(vehicleid == PilotCars[veh]) return 1;
  84. }
  85. return 0;
  86. }
  87.  
  88. stock GetName(playerid)
  89. {
  90. new name[MAX_PLAYER_NAME];
  91. GetPlayerName(playerid, name, sizeof(name));
  92. return name;
  93. }
  94.  
  95. // PUBLICS //
  96. public GiveRandomJob(playerid)
  97. {
  98. for(new q = 0; q < 8; q++) { Checkpoints[q] = -1; }
  99. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  100. for(new i = 0; i < 5; i ++) { PilotJobs[playerid][i] = false; }
  101. IsPlayerInJob[playerid] = true;
  102. new rand = random(10);
  103. switch(rand)
  104. {
  105. case 1 .. 3:
  106. {
  107. new rand2 = random(2), vtext[32], string[128];
  108. if(rand2 == 0) { vtext = "Passengers"; }
  109. else if(rand2 == 1) { vtext = "Cargo"; }
  110. else if(rand2 == 2) { vtext = "Food"; }
  111. Checkpoints[0] = CreateDynamicCP(1899.1376,-2354.3645,13.5469, 15.0, 0, 0, 0, 100.0);
  112. SetPlayerMapIcon(playerid, 1, 1899.1376,-2354.3645,13.5469, 0, COLOR_RED, MAPICON_GLOBAL);
  113. PilotJobs[playerid][0] = true;
  114. format(string,sizeof(string),"* {FF0000}Pickup the {0000FF}%s {FF0000}at {00FF00}Los Santos Airport.", vtext);
  115. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  116. }
  117. case 4 .. 6:
  118. {
  119. new rand2 = random(2), vtext[32], string[128];
  120. if(rand2 == 0) { vtext = "Passengers"; }
  121. else if(rand2 == 1) { vtext = "Cargo"; }
  122. else if(rand2 == 2) { vtext = "Food"; }
  123. Checkpoints[1] = CreateDynamicCP(-1224.5371,11.7382,14.1484, 15.0, 0, 0, 0, 100.0);
  124. SetPlayerMapIcon(playerid, 2, -1224.5371,11.7382,14.1484, 0, COLOR_RED, MAPICON_GLOBAL);
  125. PilotJobs[playerid][1] = true;
  126. format(string,sizeof(string),"* {FF0000}Pickup the {0000FF}%s {FF0000}at {00FF00}San Fierro Airport.", vtext);
  127. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  128. }
  129. case 7 .. 8:
  130. {
  131. new rand2 = random(2), vtext[32], string[128];
  132. if(rand2 == 0) { vtext = "Passengers"; }
  133. else if(rand2 == 1) { vtext = "Cargo"; }
  134. else if(rand2 == 2) { vtext = "Food"; }
  135. Checkpoints[2] = CreateDynamicCP(365.3524,2537.1438,16.6648, 15.0, 0, 0, 0, 100.0);
  136. SetPlayerMapIcon(playerid, 3, 365.3524,2537.1438,16.6648, 0, COLOR_RED, MAPICON_GLOBAL);
  137. PilotJobs[playerid][2] = true;
  138. format(string,sizeof(string),"* {FF0000}Pickup the {0000FF}%s {FF0000}at {00FF00}Abondant Airport.", vtext);
  139. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  140. }
  141. case 9 .. 10:
  142. {
  143. new rand2 = random(2), vtext[32], string[128];
  144. if(rand2 == 0) { vtext = "Passengers"; }
  145. else if(rand2 == 1) { vtext = "Cargo"; }
  146. else if(rand2 == 2) { vtext = "Food"; }
  147. Checkpoints[3] = CreateDynamicCP(1301.4873,1356.2103,10.8203, 15.0, 0, 0, 0, 100.0);
  148. SetPlayerMapIcon(playerid, 4, 1301.4873,1356.2103,10.8203, 0, COLOR_RED, MAPICON_GLOBAL);
  149. PilotJobs[playerid][3] = true;
  150. format(string,sizeof(string),"* {FF0000}Pickup the {0000FF}%s {FF0000}at {00FF00}Las Venturas Airport.", vtext);
  151. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  152. }
  153. }
  154. return 1;
  155. }
  156.  
  157. public GiveDropOff(playerid)
  158. {
  159. KillTimer(LoadingTimer[playerid]);
  160. TogglePlayerControllable(playerid, true);
  161. DisablePlayerCheckpoint(playerid);
  162. for(new i = 0; i < 5; i ++) { PilotJobs[playerid][i] = false; }
  163. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  164. for(new q = 0; q < 8; q++) { Checkpoints[q] = -1; }
  165. new rand = random(10000), string[128];
  166. SendClientMessage(playerid, COLOR_YELLOW, "* BOSS: Well done pilot, here's your money.");
  167. format(string,sizeof(string),"* You've succesfully transported your transport, you recieve $%d from your boss.", rand);
  168. GivePlayerMoney(playerid, rand);
  169. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  170. GameTextForPlayer(playerid, "~r~SUCCESFULLY TRANSPORTED", 3000, 3);
  171. return 1;
  172. }
  173.  
  174. #if defined FILTERSCRIPT
  175.  
  176. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  177. {
  178. if(checkpointid == Checkpoints[0] || checkpointid == Checkpoints[1] || checkpointid == Checkpoints[2] || checkpointid == Checkpoints[3])
  179. {
  180. for(new q = 0; q < 8; q++) { Checkpoints[q] = -1; }
  181. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  182. DisablePlayerCheckpoint(playerid);
  183. new rand = random(10);
  184. switch(rand)
  185. {
  186. case 1 .. 3:
  187. {
  188. new string[128];
  189. Checkpoints[4] = CreateDynamicCP(1899.1376,-2354.3645,13.5469, 15.0, 0, 0, 0, 100.0);
  190. SetPlayerMapIcon(playerid, 5, 1899.1376,-2354.3645,13.5469, 0, COLOR_RED, MAPICON_GLOBAL);
  191. format(string,sizeof(string),"* {FF0000}Drop your {0000FF}transport {FF0000}off at {00FF00}Los Santos Airport.");
  192. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  193. }
  194. case 4 .. 6:
  195. {
  196. new string[128];
  197. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  198. Checkpoints[5] = CreateDynamicCP(-1224.5371,11.7382,14.1484, 15.0, 0, 0, 0, 100.0);
  199. SetPlayerMapIcon(playerid, 6, -1224.5371,11.7382,14.1484, 0, COLOR_RED, MAPICON_GLOBAL);
  200. format(string,sizeof(string),"* {FF0000}Drop your {0000FF}transport {FF0000}off at {00FF00}San Fierro Airport.");
  201. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  202. }
  203. case 7 .. 8:
  204. {
  205. new string[128];
  206. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  207. Checkpoints[6] = CreateDynamicCP(365.3524,2537.1438,16.6648, 15.0, 0, 0, 0, 100.0);
  208. SetPlayerMapIcon(playerid, 7, 365.3524,2537.1438,16.6648, 0, COLOR_RED, MAPICON_GLOBAL);
  209. format(string,sizeof(string),"* {FF0000}Drop your {0000FF}transport {FF0000}off at {00FF00}Abondant Airport.");
  210. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  211. }
  212. case 9 .. 10:
  213. {
  214. new string[128];
  215. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  216. Checkpoints[7] = CreateDynamicCP(1301.4873,1356.2103,10.8203, 15.0, 0, 0, 0, 100.0);
  217. SetPlayerMapIcon(playerid, 8, 1301.4873,1356.2103,10.8203, 0, COLOR_RED, MAPICON_GLOBAL);
  218. format(string,sizeof(string),"* {FF0000}Drop your {0000FF}transport {FF0000}off at {00FF00}Las Venturas Airport.");
  219. SendClientMessage(playerid, COLOR_LIGHTRED, string);
  220. }
  221. }
  222. }
  223. else if(checkpointid == Checkpoints[4] || checkpointid == Checkpoints[5] || checkpointid == Checkpoints[6] || checkpointid == Checkpoints[7])
  224. {
  225. TogglePlayerControllable(playerid, false);
  226. for(new i = 0; i < 9; i++) { RemovePlayerMapIcon(playerid, i); }
  227. LoadingTimer[playerid] = SetTimerEx("GiveDropOff", 5000, 0, "d", playerid);
  228. GameTextForPlayer(playerid, "~w~UN~r~LOADING", 5000, 3);
  229. }
  230. return 1;
  231. }
  232.  
  233. public OnFilterScriptInit()
  234. {
  235. print("Pilot FS by Da Noob succesfully loaded.");
  236.  
  237. // JOB PICKUP
  238. jobpickup = CreatePickup(1239, 1, 1958.3483,-2182.4187,13.5469);
  239. Create3DTextLabel("Type /join to become a pilot", COLOR_GREEN, 1958.3483,-2182.4187,13.5469, 10.0, 0, 0); // 3D TEXT LABEL FOR INFO
  240.  
  241. // AIRPLANES
  242. PilotCars[0] = AddStaticVehicleEx(519,1889.6531,-2629.1267,14.4657,0,-1,-1,900); // Shamal 1
  243. PilotCars[1] = AddStaticVehicleEx(519,1823.1190,-2629.1267,14.4657,0,-1,-1,900); // Shamal 2
  244. PilotCars[2] = AddStaticVehicleEx(519,1754.5325,-2629.1267,14.4657,0,-1,-1,900); // Shamal 3
  245. PilotCars[3] = AddStaticVehicleEx(487,1964.2646,-2629.1267,13.7619,0,-1,-1,900); // Heli 1
  246. PilotCars[4] = AddStaticVehicleEx(487,1944.7985,-2629.1267,13.7354,0,-1,-1,900); // Heli 2
  247. PilotCars[5] = AddStaticVehicleEx(417,1765.6274,-2285.0801,26.8743,0,-1,-1,900); // Levi 1
  248. PilotCars[6] = AddStaticVehicleEx(593,1616.7531,-2627.9131,14.0094,0,-1,-1,900); // Dodo 1
  249. PilotCars[7] = AddStaticVehicleEx(593,1681.9587,-2627.9131,14.0094,0,-1,-1,900); // Dodo 2
  250.  
  251. return 1;
  252. }
  253.  
  254. public OnFilterScriptExit()
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnPlayerRequestClass(playerid, classid)
  260. {
  261. return 0;
  262. }
  263.  
  264. public OnPlayerConnect(playerid)
  265. {
  266. WantsJob[playerid] = false;
  267. HasPilotJob[playerid] = false; // TESTING PURPOSES - Needs to be set to FALSE
  268. IsPlayerInJob[playerid] = false;
  269. WantsQuit[playerid] = false;
  270.  
  271. for(new i = 0; i < 5; i++) { PilotJobs[playerid][i] = false; }
  272. return 1;
  273. }
  274.  
  275. public OnPlayerDisconnect(playerid, reason)
  276. {
  277. return 1;
  278. }
  279.  
  280. public OnPlayerSpawn(playerid)
  281. {
  282. return 0;
  283. }
  284.  
  285. public OnPlayerDeath(playerid, killerid, reason)
  286. {
  287. return 1;
  288. }
  289.  
  290. public OnVehicleSpawn(vehicleid)
  291. {
  292. return 1;
  293. }
  294.  
  295. public OnVehicleDeath(vehicleid, killerid)
  296. {
  297. return 1;
  298. }
  299.  
  300. public OnPlayerText(playerid, text[])
  301. {
  302. return 1;
  303. }
  304.  
  305. public OnPlayerCommandText(playerid, cmdtext[])
  306. {
  307. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  308. {
  309. // Do something here
  310. return 1;
  311. }
  312. return 0;
  313. }
  314.  
  315. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  316. {
  317. if(IsPilotCar(vehicleid))
  318. {
  319. if(HasPilotJob[playerid] == true) {}
  320. else
  321. {
  322. new Float:x, Float:y, Float:z;
  323. GetPlayerPos(playerid, x, y, z);
  324. SetPlayerPos(playerid, x, y, z);
  325. SendClientMessage(playerid, COLOR_GREY, "You need to be a pilot to enter an airplane.");
  326. }
  327. }
  328. return 1;
  329. }
  330.  
  331. public OnPlayerExitVehicle(playerid, vehicleid)
  332. {
  333. if(HasPilotJob[playerid] == true)
  334. {
  335. if(PilotJobs[playerid][0] == true || PilotJobs[playerid][1] == true || PilotJobs[playerid][2] == true || PilotJobs[playerid][3] == true)
  336. {
  337. for(new i = 0; i < 5; i++) { PilotJobs[playerid][i] = false; }
  338. for(new a = 0; a < 9; a++) { RemovePlayerMapIcon(playerid, a); }
  339. SendClientMessage(playerid, COLOR_YELLOW, "* BOSS: Quiting before delivering? I'm taking that from your paycheck!");
  340. GivePlayerMoney(playerid, -1000);
  341. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Your Boss took 1000$ from your paycheck.");
  342. }
  343. }
  344. return 1;
  345. }
  346.  
  347. public OnPlayerStateChange(playerid, newstate, oldstate)
  348. {
  349. return 1;
  350. }
  351.  
  352. public OnPlayerEnterCheckpoint(playerid)
  353. {
  354. return 1;
  355. }
  356.  
  357. public OnPlayerLeaveCheckpoint(playerid)
  358. {
  359. return 1;
  360. }
  361.  
  362. public OnPlayerEnterRaceCheckpoint(playerid)
  363. {
  364. return 1;
  365. }
  366.  
  367. public OnPlayerLeaveRaceCheckpoint(playerid)
  368. {
  369. return 1;
  370. }
  371.  
  372. public OnRconCommand(cmd[])
  373. {
  374. return 1;
  375. }
  376.  
  377. public OnPlayerRequestSpawn(playerid)
  378. {
  379. return 1;
  380. }
  381.  
  382. public OnObjectMoved(objectid)
  383. {
  384. return 1;
  385. }
  386.  
  387. public OnPlayerObjectMoved(playerid, objectid)
  388. {
  389. return 1;
  390. }
  391.  
  392. public OnPlayerPickUpPickup(playerid, pickupid)
  393. {
  394. if(pickupid == jobpickup)
  395. {
  396. GameTextForPlayer(playerid, "PILOT JOB", 3000, 3);
  397. }
  398. return 1;
  399. }
  400.  
  401. public OnVehicleMod(playerid, vehicleid, componentid)
  402. {
  403. return 1;
  404. }
  405.  
  406. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  407. {
  408. return 1;
  409. }
  410.  
  411. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  412. {
  413. return 1;
  414. }
  415.  
  416. public OnPlayerSelectedMenuRow(playerid, row)
  417. {
  418. return 1;
  419. }
  420.  
  421. public OnPlayerExitedMenu(playerid)
  422. {
  423. return 1;
  424. }
  425.  
  426. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  427. {
  428. return 1;
  429. }
  430.  
  431. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  432. {
  433. return 1;
  434. }
  435.  
  436. public OnRconLoginAttempt(ip[], password[], success)
  437. {
  438. return 1;
  439. }
  440.  
  441. public OnPlayerUpdate(playerid)
  442. {
  443. return 1;
  444. }
  445.  
  446. public OnPlayerStreamIn(playerid, forplayerid)
  447. {
  448. return 1;
  449. }
  450.  
  451. public OnPlayerStreamOut(playerid, forplayerid)
  452. {
  453. return 1;
  454. }
  455.  
  456. public OnVehicleStreamIn(vehicleid, forplayerid)
  457. {
  458. return 1;
  459. }
  460.  
  461. public OnVehicleStreamOut(vehicleid, forplayerid)
  462. {
  463. return 1;
  464. }
  465.  
  466. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  467. {
  468. return 1;
  469. }
  470.  
  471. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  472. {
  473. return 1;
  474. }
  475.  
  476. CMD:join(playerid)
  477. {
  478. if(IsPlayerInRangeOfPoint(playerid, 5.0, 1958.3483,-2182.4187,13.5469))
  479. {
  480. if(HasPilotJob[playerid] == false)
  481. {
  482. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You're about to become a Pilot, use /accept job to accept.");
  483. WantsJob[playerid] = true;
  484. }
  485. else
  486. {
  487. SendClientMessage(playerid, COLOR_GRAD2, "You're already a pilot.");
  488. }
  489. }
  490. return 1;
  491. }
  492.  
  493. CMD:accept(playerid, params[])
  494. {
  495. new objective[32];
  496. if(sscanf(params,"s[32]", objective)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accept [job]");
  497. {
  498. if(!strcmp(objective, "job", true))
  499. {
  500. if(WantsJob[playerid] == true)
  501. {
  502. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You're now a Pilot. Use /pilothelp to see your new commands.");
  503. SetPlayerSkin(playerid, 61);
  504. HasPilotJob[playerid] = true;
  505. }
  506. else
  507. {
  508. SendClientMessage(playerid, COLOR_GRAD2, "You don't want a job (believe me).");
  509. }
  510. }
  511. if(!strcmp(objective,"quit",true))
  512. {
  513. if(WantsQuit[playerid] == true)
  514. {
  515. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You've quit your Pilot job.");
  516. HasPilotJob[playerid] = false;
  517. for(new i = 0; i < 5; i++) { PilotJobs[playerid][i] = false; }
  518. DisablePlayerCheckpoint(playerid);
  519. }
  520. else
  521. {
  522. SendClientMessage(playerid, COLOR_GRAD2, "You don't want to quit your job (believe me).");
  523. }
  524. }
  525. }
  526. return 1;
  527. }
  528.  
  529. CMD:pilothelp(playerid)
  530. {
  531. ShowPlayerDialog(playerid, 9852, DIALOG_STYLE_MSGBOX, "Pilot Help", "{FF0000} PILOT HELP\n\n{00FF00}/work {0000FF}-> {FFFFFF}Use this while in an airplane to start your work.\n{00FF00}/quitjob {0000FF}-> {FFFFFF}Quit your awesome pilot job.\n{00FF00}/accept [job/quit] {0000FF}-> {FFFFFF}Accept or quit your pilot job.\n{00FF00}/join {0000FF}-> {FFFFFF}When in Pilot pickup, you can join the Pilot job.\n{00FF00}/pilothelp {0000FF}-> {FFFFFF}Displays this dialog.", "Done", "");
  532. return 1;
  533. }
  534.  
  535. CMD:work(playerid)
  536. {
  537. new vehicleid = GetPlayerVehicleID(playerid);
  538. if(HasPilotJob[playerid] == false) return SendClientMessage(playerid, COLOR_GRAD2, "You're not a pilot.");
  539. if(GetVehicleModel(vehicleid) != 519 && GetVehicleModel(vehicleid) != 487 && GetVehicleModel(vehicleid) != 417 && GetVehicleModel(vehicleid) != 593) return SendClientMessage(playerid, COLOR_GRAD2, "You're not in an airplane.");
  540. {
  541. GiveRandomJob(playerid);
  542. }
  543. return 1;
  544. }
  545.  
  546. CMD:quitjob(playerid)
  547. {
  548. if(HasPilotJob[playerid] == false) return SendClientMessage(playerid, COLOR_GRAD2, "You're not a pilot.");
  549. {
  550. SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You're about to quit your Pilot job, use /accept quit to quit.");
  551. WantsQuit[playerid] = true;
  552. }
  553. return 1;
  554. }
  555.  
  556. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement