Advertisement
Guest User

Untitled

a guest
Jan 19th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 139.74 KB | None | 0 0
  1. //==============================================================================
  2. #include <a_samp>
  3. #include <color>
  4. //==============================================================================
  5. #define COLOR_RED 0xFF0000FF
  6. #define COLOR_SIMPSONS 0xFFD90FAA
  7. #define COLOR_GREEN 0x33AA33AA
  8. #define COLOR_NAVY 0x000080FF
  9. #define COLOR_BLUE 0x0000FFFF
  10. #define COLOR_TEAL 0x008080FF
  11. #define COLOR_LIME 0x00FF00FF
  12. #define COLOR_AQUA 0x00FFFFFF
  13. #define COLOR_CYAN 0x00FFFFFF
  14. #define COLOR_MAROON 0x800000FF
  15. #define COLOR_PURPLE 0x800080FF
  16. #define COLOR_OLIVE 0x808000FF
  17. #define COLOR_GRAY 0x808080FF
  18. #define COLOR_SILVER 0xC0C0C0FF
  19. #define COLOR_FUCHSIA 0xFF00FFFF
  20. #define COLOR_PINK 0xFF00FFFF
  21. #define COLOR_YELLOW 0xFFFF00FF
  22. #define COLOR_WHITE 0xFFFFFFFF
  23. #define COLOR_DARKORANGE 0xFF3F00AA
  24. #define COLOR_BLACK 0x000000FF
  25. #define COLOR_ORANGE 0xFFA500FF
  26. #define COLOR_GOLD 0xFFD700FF
  27. #define COLOR_LIGHTBLUE 0xADD8E6FF
  28. #define COLOR_GREENYELLOW 0xADFF2FFF
  29. #define COLOR_DARKGREEN 0x006400FF
  30. #define COLOR_LIGHTYELLOW 0xFFFFE0FF
  31. #define COLOR_LIGHTPINK 0xFFB6C1FF
  32. #define COLOR_LIGHTCORAL 0xF08080FF
  33. #define COLOR_DARKGRAY 0xA9A9A9FF
  34. #define COLOR_BROWN 0x400000FF
  35. //==============================================================================
  36. #if defined FILTERSCRIPT
  37. //==============================================================================
  38. new Float:X, Float:Y, Float:Z, Float:Angle;
  39. new CurrentSpawnedVehicle[MAX_PLAYERS];
  40. //==============================================================================
  41. new Float:px, Float:py, Float:pz, Float:prx, Float:pry, Float:prz;
  42. new Float:x, Float:y, Float:z, Float:z_angle;
  43. new vehicleid, VehicleObject[15];
  44. //==============================================================================
  45. stock _AttachObjectToVehicle(objectid, vehid, Float:ox, Float:oy, Float:oz, Float:rox=0.0, Float:roy=0.0, Float:roz=0.0)
  46. {
  47. AttachObjectToVehicle(objectid, vehid, ox, oy, oz, 0.0, 0.0, 0.0);
  48. #pragma unused rox
  49. #pragma unused roy
  50. #pragma unused roz
  51. }
  52. #define AttachObjectToVehicle _AttachObjectToVehicle
  53. //==============================================================================
  54.  
  55. public OnFilterScriptInit()
  56. {
  57. print("\n*************************");
  58. print("*Player Menu Dialog Loaded*");
  59. print("*************************\n");
  60. return 1;
  61. }
  62.  
  63. public OnFilterScriptExit()
  64. {
  65. return 1;
  66. }
  67.  
  68. #else
  69.  
  70. main()
  71. {
  72. print("\n***************************");
  73. print("*Player Menu Dialog UnLoaded*");
  74. print("***************************\n");
  75. }
  76.  
  77. #endif
  78.  
  79.  
  80. public OnPlayerRequestClass(playerid, classid)
  81. {
  82. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  83. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  84. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  85. return 1;
  86. }
  87. public OnPlayerCommandText(playerid, cmdtext[])
  88. {
  89. if (strcmp("/playermenu", cmdtext, true, 10) == 0)
  90. {
  91. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Player Menu","Player Colour!\nCar Tune!\nVehicle Selection Menu!\nNeons!\nVehicle Control System!\nPlayer Text Colour!","Select","Cancel");
  92. return 1;
  93. }
  94. return 0;
  95. }
  96. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  97. {
  98. if (dialogid == 10)
  99. {
  100. if (response)
  101. {
  102. if (listitem == 0)
  103. {
  104. ShowPlayerDialog(playerid,11,DIALOG_STYLE_LIST,"{00C0FF}Player Colour List!","{FF0000}RED\n{33AA33}GREEN\n{000080}NAVY\n{0000FF}BLUE\n{008080}TEAL\n{00FF00}LIME\n{00FFFF}AQUA\n{00FFFF}CYAN\n{800000}MAROON\n{800080}PURPLE\n{808000}OLIVE\n{808080}GRAY\n{C0C0C0}SILVER\n{FF00FF}FUCHSIA\n{FF00FF}PINK\n{FFFF00}YELLOW\n{FFFFFF}WHITE\n{FF3F00}BACK","Select","Cancel");
  105. }
  106. }
  107. }
  108. if(dialogid == 11)
  109. {
  110. if(response)
  111. {
  112. if (listitem == 0)
  113. {
  114. SendClientMessage(playerid, COLOR_RED, "Your color is now Red");
  115. SetPlayerColor(playerid, COLOR_RED);
  116. }
  117. if (listitem == 1)
  118. {
  119. SendClientMessage(playerid, COLOR_GREEN, "Your color is now Green");
  120. SetPlayerColor(playerid, COLOR_GREEN);
  121. }
  122. if (listitem == 2)
  123. {
  124. SendClientMessage(playerid, COLOR_NAVY, "Your color is now Navy");
  125. SetPlayerColor(playerid, COLOR_NAVY);
  126. }
  127. if (listitem == 3)
  128. {
  129. SendClientMessage(playerid, COLOR_BLUE, "Your color is now Blue");
  130. SetPlayerColor(playerid, COLOR_BLUE);
  131. }
  132. if (listitem == 4)
  133. {
  134. SendClientMessage(playerid, COLOR_TEAL, "Your color is now Teal");
  135. SetPlayerColor(playerid, COLOR_TEAL);
  136. }
  137. if (listitem == 5)
  138. {
  139. SendClientMessage(playerid, COLOR_LIME, "Your color is now a Lime");
  140. SetPlayerColor(playerid, COLOR_LIME);
  141. }
  142. if (listitem == 6)
  143. {
  144. SendClientMessage(playerid, COLOR_AQUA, "Your color is now Aqua");
  145. SetPlayerColor(playerid, COLOR_AQUA);
  146. }
  147. if (listitem == 7)
  148. {
  149. SendClientMessage(playerid, COLOR_CYAN, "Your color is now Cyan");
  150. SetPlayerColor(playerid, COLOR_CYAN);
  151. }
  152. if (listitem == 8)
  153. {
  154. SendClientMessage(playerid, COLOR_MAROON, "Your color is now Maroon");
  155. SetPlayerColor(playerid, COLOR_MAROON);
  156. }
  157. if (listitem == 9)
  158. {
  159. SendClientMessage(playerid, COLOR_PURPLE, "Your color is now Purple");
  160. SetPlayerColor(playerid, COLOR_PURPLE);
  161. }
  162. if (listitem == 10)
  163. {
  164. SendClientMessage(playerid, COLOR_OLIVE, "Your color is now Olive");
  165. SetPlayerColor(playerid, COLOR_OLIVE);
  166. }
  167. if (listitem == 11)
  168. {
  169. SendClientMessage(playerid, COLOR_GRAY, "Your color is now Gray");
  170. SetPlayerColor(playerid, COLOR_GRAY);
  171. }
  172. if (listitem == 12)
  173. {
  174. SendClientMessage(playerid, COLOR_SILVER, "Your color is now Silver");
  175. SetPlayerColor(playerid, COLOR_SILVER);
  176. }
  177. if (listitem == 13)
  178. {
  179. SendClientMessage(playerid, COLOR_FUCHSIA, "Your color is now Fuchsia");
  180. SetPlayerColor(playerid, COLOR_FUCHSIA);
  181. }
  182. if (listitem == 14)
  183. {
  184. SendClientMessage(playerid, COLOR_PINK, "Your color is now Pink");
  185. SetPlayerColor(playerid, COLOR_PINK);
  186. }
  187. if (listitem == 15)
  188. {
  189. SendClientMessage(playerid, COLOR_YELLOW, "Your color is now Yellow");
  190. SetPlayerColor(playerid, COLOR_YELLOW);
  191. }
  192. if (listitem == 16)
  193. {
  194. SendClientMessage(playerid, COLOR_WHITE, "Your color is now White");
  195. SetPlayerColor(playerid, COLOR_WHITE);
  196. }
  197. if (listitem == 17)
  198. {
  199. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Player Menu!","Player Colour!\nCar Tune!\nVehicle Selection Menu!\nNeons!\nVehicle Control System!\nWeapon Shop\nPlayer Text Colour!","Select","Cancel");
  200. }
  201. }
  202. return 1;
  203. }
  204. //==============================================================================
  205. // Car Tune
  206. //==============================================================================
  207. new vehicleid;
  208. vehicleid = GetPlayerVehicleID(playerid);
  209. //==============================================================================
  210. if (dialogid == 10)
  211. {
  212. if (response)
  213. {
  214. if (listitem == 0)
  215. {
  216. ShowPlayerDialog(playerid,1223,DIALOG_STYLE_LIST,"Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  217. }
  218. }
  219. }
  220. if(dialogid == 1223)
  221. {
  222. if(response)
  223. {
  224. if (listitem == 0)
  225. {
  226. ShowPlayerDialog(playerid,1224,DIALOG_STYLE_LIST,"Tuners","Elegy\nFlash\nJester\nSultan\nUranus\nStratum","Select","Cancel");
  227. }
  228. if (listitem == 1)
  229. {
  230. ShowPlayerDialog(playerid,1225,DIALOG_STYLE_LIST,"Lowriders","Blade\nSavanna\nBroadway\nRemington\nSlamvan\nTornado","Select","Cancel");
  231. }
  232. if (listitem == 2)
  233. {
  234. if(GetVehicleModel(vehicleid) == 562||565||559||560||558||561)
  235. {
  236. ShowPlayerDialog(playerid,1226,DIALOG_STYLE_LIST,"Others","Spoilers","Select","Cancel");
  237. }
  238. else
  239. {
  240. SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
  241. }
  242. }
  243. if (listitem == 3)
  244. {
  245. ShowPlayerDialog(playerid,1227,DIALOG_STYLE_LIST,"Basic parts","Rims\nExtra","Select","Cancel");
  246. }
  247. if (listitem == 4)
  248. {
  249. ShowPlayerDialog(playerid,1250,DIALOG_STYLE_LIST,"Paintjobs","Paintjob1\nPaintjob2\nPaintjob3","Select","Cancel");
  250. }
  251. if (listitem == 5)
  252. {
  253. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  254. }
  255. }
  256. }
  257. ////////////////////////////////////////////////////////////////////////
  258. if(dialogid == 1224)
  259. {
  260. if(response)
  261. {
  262. if (listitem == 0)
  263. {
  264. ShowPlayerDialog(playerid,1228,DIALOG_STYLE_LIST,"Elegy","ExhaustAlienElegy\nX-Flow roof\nAlien Sideskirt\nExhaust X-Flow\nAlien Roof\nX-Flow Sideskirt\nSpoiler X-Flow\nSpoilerAlien\nRear BumperX-Flow\nRear BumperAlien\nFront Bumper X-Flow\nFront Bumper Alien","Select", "Cancel");
  265. }
  266. if (listitem == 1)
  267. {
  268. ShowPlayerDialog(playerid,1229,DIALOG_STYLE_LIST,"Flash","Exhaust X-Flow\nExhaust Alien\n Alien Sideskirt\nX-Flow sideskirt\nSpoiler Alien\nSpoiler X-Flow\nRoof X-Flow\nRoof Alien\nRear bumper Alien\nRear bumper X-Flow\nFront bumper X-Flow\nFront Bumper Alien","Select", "Cancel");
  269. }
  270. if (listitem == 2)
  271. {
  272. ShowPlayerDialog(playerid,1230,DIALOG_STYLE_LIST,"Jester","Sideskirts Alien\nSideskirts X-Flow\nFront Bumper X-Flow\nRear bumper Alien\nFront Bumper Alien\nRear Bumper X-Flow\nSpoiler Alien\nSpoiler X-Flow\nExhaust Alien\nExhaust X-Flow\nRoof Alien\nRoof X-Flow","Select", "Cancel");
  273. }
  274. if (listitem == 3)
  275. {
  276. ShowPlayerDialog(playerid,1231,DIALOG_STYLE_LIST,"Sultan","Alien Sideskirt\nExhaust Alien\nExhaust X-Flow\nX-flow Sideskirt\nAlien Roof\nX-Flow Roof\nSpoiler Alien\nSpoiler X-Flow\nRear Bumper X-Flow\nRear Bumper Alien\nFront Bumper Alien\nFront Bumper X-Flow","Select", "Cancel");
  277. }
  278. if (listitem == 4)
  279. {
  280. ShowPlayerDialog(playerid,1232,DIALOG_STYLE_LIST,"Uranus","Roof Alien\nRoof X-Flow\nExhaust X-Flow\nExhaust Alien\nSideskirt Alien\nSideskirt X-Flow\nSpoiler X-Flow\nSpoiler Alien\nFront Bumper X-Flow\nFront Bumper Alien\nRear Bumper X-FLow\nRear Bumper Alien","Select", "Cancel");
  281. }
  282. if (listitem == 5)
  283. {
  284. ShowPlayerDialog(playerid,1233,DIALOG_STYLE_LIST,"Stratum","Roof Alien\nSideskirt Alien\nSideskirt X-Flow\nSpoiler Alien\nExhaust X-Flow\nSpoiler X-Flow\nRoof X-Flow\nExhaust Alien\nRear Bumper Alien\nFront Bumper Alien\nRear Bumper X-Flow\nFront Bumper X-Flow","Select", "Cancel");
  285. }
  286. if (listitem == 6)
  287. {
  288. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  289. }
  290. }
  291. }
  292. ///////////////////////////////////////////////////////////////////////////////////
  293. if(dialogid == 1225)
  294. {
  295. if(response)
  296. {
  297. if (listitem == 0)
  298. {
  299. ShowPlayerDialog(playerid,1234,DIALOG_STYLE_LIST,"Blade","Roof Convertible\nRood Hardtop\nExhaust Chrome\nExhaust Slamin\nSideskirt Chrome\nFrontbumper Slamin\nFrontbumper Chrome\nRearbumper Slamin\nRearbumper Chrome","Select", "Cancel");
  300. }
  301. if (listitem == 1)
  302. {
  303. ShowPlayerDialog(playerid,1235,DIALOG_STYLE_LIST,"Savanna","Sideskirt Chrome Strip\nExhaust Chrome\nExhaust Slamin\nHardtop\nSofttop\nRear bumper Slamin\nRear bumper chrome\nFront bumper Slamin\nFront bumper chrome","Select", "Cancel");
  304. }
  305. if (listitem == 2)
  306. {
  307. ShowPlayerDialog(playerid,1236,DIALOG_STYLE_LIST,"Broadway","Sideskirt Chrome\nExhaust Slamin\nExhaust Chrome\nFront bumper chrome\nFront bumper Slamin\nRearbumper Chrome\nRearbumper Slamin","Select", "Cancel");
  308. }
  309. if (listitem == 3)
  310. {
  311. ShowPlayerDialog(playerid,1237,DIALOG_STYLE_LIST,"Remington","Bullbar Chrome Grill\nSideskirt Chrome Flame\nSideskirt Chrome Arches\nBullbars Bars\nBullbars Lights\nExhaust Chrome\nExhaust Slamin\nRear bumper Chrome\nFront bumper slamin\nRear bumper Chrome\nFront bumper slamin","Select", "Cancel");
  312. }
  313. if (listitem == 4)
  314. {
  315. ShowPlayerDialog(playerid,1238,DIALOG_STYLE_LIST,"Slamvan","Rear Bullbars Chrome\nRear Bullbars Slamin\nFront Sign\nFront Sign 2\nExhaust Chrome\nExhaust Slamin\nFront Bullbars Chrome\nFront Bullbars Slamin\nFront Bumper Chrome\nSideskirt Chrome Trim\nSideskirt Wheelcovers","Select", "Cancel");
  316. }
  317. if (listitem == 5)
  318. {
  319. ShowPlayerDialog(playerid,1239,DIALOG_STYLE_LIST,"Tornado","Sideskirt\nExhaust Slamin\nExhaust Chrome\nFront Bumper Slaming\nFront Bumper Chrome\nRear Bumper Chrome\nRear Bumper Slamin","Select", "Cancel");
  320. }
  321. if (listitem == 6)
  322. {
  323. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  324. }
  325. }
  326. }
  327. //////////////////////////////////////////////////////////////////////////////////////////
  328. if(dialogid == 1226)
  329. {
  330. if(response)
  331. {
  332. if (listitem == 0)
  333. {
  334.  
  335. if(IsTuner(GetVehicleModel(vehicleid)))
  336. {
  337. ShowPlayerDialog(playerid,1240,DIALOG_STYLE_LIST,"Spoilers","Spoiler Pro\nSpoiler Win\nSpoiler Drag\nSpoiler Alpha\nSpoiler Race\nSpoiler Worx","Select", "Cancel");
  338. return 1;
  339. }
  340. else
  341. {
  342. SendClientMessage(playerid,COLOR_DARKORANGE,"You have to be in a Tuner");
  343. }
  344. }
  345. if (listitem == 1)
  346. {
  347. ShowPlayerDialog(playerid,1241,DIALOG_STYLE_LIST,"Hoods","Hood Champ Scoop\nHood Fury Scoop\nRoof Scoop\nRace Scoop\nWorx Scoop","Select", "Cancel");
  348. }
  349. if (listitem == 2)
  350. {
  351. ShowPlayerDialog(playerid,1242,DIALOG_STYLE_LIST,"Lamps","Round Fog\nSqaure Fog","Select", "Cancel");
  352. }
  353. if (listitem == 3)
  354. {
  355. ShowPlayerDialog(playerid,1243,DIALOG_STYLE_LIST,"Vents","Oval Vents\nSqaure Vents","Select", "Cancel");
  356. }
  357. if (listitem == 4)
  358. {
  359. ShowPlayerDialog(playerid,1244,DIALOG_STYLE_LIST,"Sides","Sideskirt","Select", "Cancel");
  360. }
  361. if (listitem == 5)
  362. {
  363. ShowPlayerDialog(playerid,1245,DIALOG_STYLE_LIST,"Exhaust","Exhausts Upset\nExhaust Twin\nExhaust Large\nExhaust Medium\nExhaust Small","Select", "Cancel");
  364. }
  365. if (listitem == 6)
  366. {
  367. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  368. }
  369. }
  370. }
  371. ////////////////////////////////////////////////////////////////////////////////////////
  372. if(dialogid == 1227)
  373. {
  374. if(response)
  375. {
  376. if (listitem == 0)
  377. {
  378. ShowPlayerDialog(playerid,1246,DIALOG_STYLE_LIST,"Rims","Ahab\nVirtual\nAccess\nShadow\nMega\nRimshine\nWires\nClassic\nTwist\nCutter\nSwitch\nGrove\nImport\nDollar\nTrance\nAtomic","Select", "Cancel");
  379. }
  380. if (listitem == 1)
  381. {
  382. ShowPlayerDialog(playerid,1247,DIALOG_STYLE_LIST,"Extra","Bas Boost\nHydraulics\nNitro x2\nNitro x5\nNitro x10","Select", "Cancel");
  383. }
  384. if (listitem == 2)
  385. {
  386. ShowPlayerDialog(playerid,10,DIALOG_STYLE_LIST,"{00C0FF}Car Tune!","Tuners\nLowriders\nOthers\nBasic parts\nPaintjobs","Select","Cancel");
  387. }
  388. }
  389. }
  390. ///////////////////////////////////////////////////////////////////////////
  391. if(dialogid == 1228)
  392. {
  393. if(response)
  394. {
  395. if (listitem == 0)
  396. {
  397. if(GetVehicleModel(vehicleid) == 562)
  398. {
  399. GivePlayerMoney(playerid,-800);
  400. AddVehicleComponent(vehicleid, 1034);
  401. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  402. }
  403. else
  404. {
  405. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  406. }
  407. }
  408. if (listitem == 1)
  409. {
  410. new vehicle;
  411. vehicle = GetPlayerVehicleID(playerid);
  412. if(GetVehicleModel(vehicleid) == 562)
  413. {
  414. AddVehicleComponent(vehicle, 1035);
  415. GivePlayerMoney(playerid,-800);
  416. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  417. }
  418. else
  419. {
  420. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  421. }
  422. }
  423. if (listitem == 2)
  424. {
  425. new vehicle;
  426. vehicle = GetPlayerVehicleID(playerid);
  427. if(GetVehicleModel(vehicleid) == 562)
  428. {
  429. AddVehicleComponent(vehicle, 1036);
  430. GivePlayerMoney(playerid,-800);
  431. AddVehicleComponent(vehicle, 1040);
  432. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  433. }
  434. else
  435. {
  436. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  437. }
  438. }
  439. if (listitem == 3)
  440. {
  441. new vehicle;
  442. vehicle = GetPlayerVehicleID(playerid);
  443. if(GetVehicleModel(vehicleid) == 562)
  444. {
  445. AddVehicleComponent(vehicle, 1037);
  446. GivePlayerMoney(playerid,-800);
  447. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  448. }
  449. else
  450. {
  451. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  452. }
  453. }
  454. if (listitem == 4)
  455. {
  456. new vehicle;
  457. vehicle = GetPlayerVehicleID(playerid);
  458. if(GetVehicleModel(vehicleid) == 562)
  459. {
  460. AddVehicleComponent(vehicle, 1038);
  461. GivePlayerMoney(playerid,-800);
  462. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  463. }
  464. else
  465. {
  466. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  467. }
  468. }
  469. if (listitem == 5)
  470. {
  471. new vehicle;
  472. vehicle = GetPlayerVehicleID(playerid);
  473. if(GetVehicleModel(vehicleid) == 562)
  474. {
  475. AddVehicleComponent(vehicle, 1039);
  476. GivePlayerMoney(playerid,-800);
  477. AddVehicleComponent(vehicle, 1041);
  478. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  479. }
  480. else
  481. {
  482. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  483. }
  484. }
  485. if (listitem == 6)
  486. {
  487. new vehicle;
  488. vehicle = GetPlayerVehicleID(playerid);
  489. if(GetVehicleModel(vehicleid) == 562)
  490. {
  491. AddVehicleComponent(vehicle, 1146);
  492. GivePlayerMoney(playerid,-800);
  493. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  494. }
  495. else
  496. {
  497. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  498. }
  499. }
  500. if (listitem == 7)
  501. {
  502. new vehicle;
  503. vehicle = GetPlayerVehicleID(playerid);
  504. if(GetVehicleModel(vehicleid) == 562)
  505. {
  506. AddVehicleComponent(vehicle, 1147);
  507. GivePlayerMoney(playerid,-800);
  508. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  509. }
  510. else
  511. {
  512. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  513. }
  514. }
  515. if (listitem == 8)
  516. {
  517. new vehicle;
  518. vehicle = GetPlayerVehicleID(playerid);
  519. if(GetVehicleModel(vehicleid) == 562)
  520. {
  521. AddVehicleComponent(vehicle, 1148);
  522. GivePlayerMoney(playerid,-800);
  523. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  524. }
  525. else
  526. {
  527. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  528. }
  529. }
  530. if (listitem == 9)
  531. {
  532. new vehicle;
  533. vehicle = GetPlayerVehicleID(playerid);
  534. if(GetVehicleModel(vehicleid) == 562)
  535. {
  536. AddVehicleComponent(vehicle, 1149);
  537. GivePlayerMoney(playerid,-800);
  538. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  539. }
  540. else
  541. {
  542. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  543. }
  544. }
  545. if (listitem == 10)
  546. {
  547. new vehicle;
  548. vehicle = GetPlayerVehicleID(playerid);
  549. if(GetVehicleModel(vehicleid) == 562)
  550. {
  551. AddVehicleComponent(vehicle, 1172);
  552. GivePlayerMoney(playerid,-800);
  553. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  554. }
  555. else
  556. {
  557. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  558. }
  559. }
  560. if (listitem == 11)
  561. {
  562. new vehicle;
  563. vehicle = GetPlayerVehicleID(playerid);
  564. if(GetVehicleModel(vehicleid) == 562)
  565. {
  566. AddVehicleComponent(vehicle, 1171);
  567. GivePlayerMoney(playerid,-800);
  568. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  569. }
  570. else
  571. {
  572. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Elegy");
  573. }
  574. }
  575. }
  576. }
  577. //////////////////////////////////////////////////////////////////////////////////////
  578. if(dialogid == 1229)
  579. {
  580. if(response)
  581. {
  582. if (listitem == 0)
  583. {
  584. if(GetVehicleModel(vehicleid) == 565)
  585. {
  586. AddVehicleComponent(vehicleid, 1045);
  587. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  588. }
  589. else
  590. {
  591. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  592. }
  593. }
  594. if (listitem == 1)
  595. {
  596. new vehicle;
  597. vehicle = GetPlayerVehicleID(playerid);
  598. if(GetVehicleModel(vehicleid) == 565)
  599. {
  600. AddVehicleComponent(vehicle, 1046);
  601. GivePlayerMoney(playerid,-800);
  602. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  603. }
  604. else
  605. {
  606. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  607. }
  608. }
  609. if (listitem == 2)
  610. {
  611. new vehicle;
  612. vehicle = GetPlayerVehicleID(playerid);
  613. if(GetVehicleModel(vehicleid) == 565)
  614. {
  615. AddVehicleComponent(vehicle, 1047);
  616. GivePlayerMoney(playerid,-800);
  617. AddVehicleComponent(vehicle, 1051);
  618. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  619. }
  620. else
  621. {
  622. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  623. }
  624. }
  625. if (listitem == 3)
  626. {
  627. new vehicle;
  628. vehicle = GetPlayerVehicleID(playerid);
  629. if(GetVehicleModel(vehicleid) == 565)
  630. {
  631. AddVehicleComponent(vehicle, 1048);
  632. GivePlayerMoney(playerid,-800);
  633. AddVehicleComponent(vehicle, 1052);
  634. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  635. }
  636. else
  637. {
  638. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  639. }
  640. }
  641. if (listitem == 4)
  642. {
  643. new vehicle;
  644. vehicle = GetPlayerVehicleID(playerid);
  645. if(GetVehicleModel(vehicleid) == 565)
  646. {
  647. AddVehicleComponent(vehicle, 1049);
  648. GivePlayerMoney(playerid,-800);
  649. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  650. }
  651. else
  652. {
  653. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  654. }
  655. }
  656. if (listitem == 5)
  657. {
  658. new vehicle;
  659. vehicle = GetPlayerVehicleID(playerid);
  660. if(GetVehicleModel(vehicleid) == 565)
  661. {
  662. AddVehicleComponent(vehicle, 1050);
  663. GivePlayerMoney(playerid,-800);
  664. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  665. }
  666. else
  667. {
  668. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  669. }
  670. }
  671. if (listitem == 6)
  672. {
  673. new vehicle;
  674. vehicle = GetPlayerVehicleID(playerid);
  675. if(GetVehicleModel(vehicleid) == 565)
  676. {
  677. AddVehicleComponent(vehicle, 1053);
  678. GivePlayerMoney(playerid,-800);
  679. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  680. }
  681. else
  682. {
  683. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  684. }
  685. }
  686. if (listitem == 7)
  687. {
  688. new vehicle;
  689. vehicle = GetPlayerVehicleID(playerid);
  690. if(GetVehicleModel(vehicleid) == 565)
  691. {
  692. AddVehicleComponent(vehicle, 1054);
  693. GivePlayerMoney(playerid,-800);
  694. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  695. }
  696. else
  697. {
  698. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  699. }
  700. }
  701. if (listitem == 8)
  702. {
  703. new vehicle;
  704. vehicle = GetPlayerVehicleID(playerid);
  705. if(GetVehicleModel(vehicleid) == 565)
  706. {
  707. AddVehicleComponent(vehicle, 1150);
  708. GivePlayerMoney(playerid,-800);
  709. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  710. }
  711. else
  712. {
  713. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  714. }
  715. }
  716. if (listitem == 9)
  717. {
  718. new vehicle;
  719. vehicle = GetPlayerVehicleID(playerid);
  720. if(GetVehicleModel(vehicleid) == 565)
  721. {
  722. AddVehicleComponent(vehicle, 1151);
  723. GivePlayerMoney(playerid,-800);
  724. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  725. }
  726. else
  727. {
  728. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  729. }
  730. }
  731. if (listitem == 10)
  732. {
  733. new vehicle;
  734. vehicle = GetPlayerVehicleID(playerid);
  735. if(GetVehicleModel(vehicleid) == 565)
  736. {
  737. AddVehicleComponent(vehicle, 1152);
  738. GivePlayerMoney(playerid,-800);
  739. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  740. }
  741. else
  742. {
  743. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  744. }
  745. }
  746. if (listitem == 11)
  747. {
  748. new vehicle;
  749. vehicle = GetPlayerVehicleID(playerid);
  750. if(GetVehicleModel(vehicleid) == 565)
  751. {
  752. AddVehicleComponent(vehicle, 1153);
  753. GivePlayerMoney(playerid,-800);
  754. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  755. }
  756. else
  757. {
  758. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Flash");
  759. }
  760. }
  761. }
  762. }
  763. //////////////////////////////////////////////////////////////////////////////////////
  764. if(dialogid == 1230)
  765. {
  766. if(response)
  767. {
  768. if (listitem == 0)
  769. {
  770. if(GetVehicleModel(vehicleid) == 559)
  771. {
  772. AddVehicleComponent(vehicleid, 1069);
  773. GivePlayerMoney(playerid,-800);
  774. AddVehicleComponent(vehicleid, 1071);
  775. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  776. }
  777. else
  778. {
  779. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  780. }
  781. }
  782. if (listitem == 1)
  783. {
  784. new vehicle;
  785. vehicle = GetPlayerVehicleID(playerid);
  786. if(GetVehicleModel(vehicleid) == 559)
  787. {
  788. AddVehicleComponent(vehicle, 1070);
  789. GivePlayerMoney(playerid,-800);
  790. AddVehicleComponent(vehicleid, 1072);
  791. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  792. }
  793. else
  794. {
  795. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  796. }
  797. }
  798. if (listitem == 2)
  799. {
  800. new vehicle;
  801. vehicle = GetPlayerVehicleID(playerid);
  802. if(GetVehicleModel(vehicleid) == 559)
  803. {
  804. AddVehicleComponent(vehicle, 1173);
  805. GivePlayerMoney(playerid,-800);
  806. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  807. }
  808. else
  809. {
  810. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  811. }
  812. }
  813. if (listitem == 3)
  814. {
  815. new vehicle;
  816. vehicle = GetPlayerVehicleID(playerid);
  817. if(GetVehicleModel(vehicleid) == 559)
  818. {
  819. AddVehicleComponent(vehicle, 1159);
  820. GivePlayerMoney(playerid,-800);
  821. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  822. }
  823. else
  824. {
  825. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  826. }
  827. }
  828. if (listitem == 4)
  829. {
  830. new vehicle;
  831. vehicle = GetPlayerVehicleID(playerid);
  832. if(GetVehicleModel(vehicleid) == 559)
  833. {
  834. AddVehicleComponent(vehicle, 1160);
  835. GivePlayerMoney(playerid,-800);
  836. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  837. }
  838. else
  839. {
  840. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  841. }
  842. }
  843. if (listitem == 5)
  844. {
  845. new vehicle;
  846. vehicle = GetPlayerVehicleID(playerid);
  847. if(GetVehicleModel(vehicleid) == 559)
  848. {
  849. AddVehicleComponent(vehicle, 1161);
  850. GivePlayerMoney(playerid,-800);
  851. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  852. }
  853. else
  854. {
  855. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  856. }
  857. }
  858. if (listitem == 6)
  859. {
  860. new vehicle;
  861. vehicle = GetPlayerVehicleID(playerid);
  862. if(GetVehicleModel(vehicleid) == 559)
  863. {
  864. AddVehicleComponent(vehicle, 1162);
  865. GivePlayerMoney(playerid,-800);
  866. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  867. }
  868. else
  869. {
  870. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  871. }
  872. }
  873. if (listitem == 7)
  874. {
  875. new vehicle;
  876. vehicle = GetPlayerVehicleID(playerid);
  877. if(GetVehicleModel(vehicleid) == 559)
  878. {
  879. AddVehicleComponent(vehicle, 1158);
  880. GivePlayerMoney(playerid,-800);
  881. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  882. }
  883. else
  884. {
  885. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  886. }
  887. }
  888. if (listitem == 8)
  889. {
  890. new vehicle;
  891. vehicle = GetPlayerVehicleID(playerid);
  892. if(GetVehicleModel(vehicleid) == 559)
  893. {
  894. AddVehicleComponent(vehicle, 1065);
  895. GivePlayerMoney(playerid,-800);
  896. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  897. }
  898. else
  899. {
  900. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  901. }
  902. }
  903. if (listitem == 9)
  904. {
  905. new vehicle;
  906. vehicle = GetPlayerVehicleID(playerid);
  907. if(GetVehicleModel(vehicleid) == 559)
  908. {
  909. AddVehicleComponent(vehicle, 1066);
  910. GivePlayerMoney(playerid,-800);
  911. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  912. }
  913. else
  914. {
  915. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  916. }
  917. }
  918. if (listitem == 10)
  919. {
  920. new vehicle;
  921. vehicle = GetPlayerVehicleID(playerid);
  922. if(GetVehicleModel(vehicleid) == 559)
  923. {
  924. AddVehicleComponent(vehicle, 1067);
  925. GivePlayerMoney(playerid,-800);
  926. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  927. }
  928. else
  929. {
  930. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  931. }
  932. }
  933. if (listitem == 11)
  934. {
  935. new vehicle;
  936. vehicle = GetPlayerVehicleID(playerid);
  937. if(GetVehicleModel(vehicleid) == 559)
  938. {
  939. AddVehicleComponent(vehicle, 1068);
  940. GivePlayerMoney(playerid,-800);
  941. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  942. }
  943. else
  944. {
  945. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Jester");
  946. }
  947. }
  948. }
  949. }
  950. //////////////////////////////////////////////////////////////////////////////////////
  951. if(dialogid == 1231)
  952. {
  953. if(response)
  954. {
  955. if (listitem == 0)
  956. {
  957. if(GetVehicleModel(vehicleid) == 560)
  958. {
  959. AddVehicleComponent(vehicleid, 1026);
  960. GivePlayerMoney(playerid,-800);
  961. AddVehicleComponent(vehicleid, 1027);
  962. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  963. }
  964. else
  965. {
  966. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  967. }
  968. }
  969. if (listitem == 1)
  970. {
  971. if(GetVehicleModel(vehicleid) == 560)
  972. {
  973. AddVehicleComponent(vehicleid, 1028);
  974. GivePlayerMoney(playerid,-800);
  975. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  976. }
  977. else
  978. {
  979. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  980. }
  981. }
  982. if (listitem == 2)
  983. {
  984. new vehicle;
  985. vehicle = GetPlayerVehicleID(playerid);
  986. if(GetVehicleModel(vehicleid) == 560)
  987. {
  988. AddVehicleComponent(vehicle, 1029);
  989. GivePlayerMoney(playerid,-800);
  990. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  991. }
  992. else
  993. {
  994. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  995. }
  996. }
  997. if (listitem == 3)
  998. {
  999. new vehicle;
  1000. vehicle = GetPlayerVehicleID(playerid);
  1001. if(GetVehicleModel(vehicleid) == 560)
  1002. {
  1003. AddVehicleComponent(vehicle, 1030);
  1004. GivePlayerMoney(playerid,-800);
  1005. AddVehicleComponent(vehicle, 1031);
  1006. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1007. }
  1008. else
  1009. {
  1010. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1011. }
  1012. }
  1013. if (listitem == 4)
  1014. {
  1015. new vehicle;
  1016. vehicle = GetPlayerVehicleID(playerid);
  1017. if(GetVehicleModel(vehicleid) == 560)
  1018. {
  1019. AddVehicleComponent(vehicle, 1032);
  1020. GivePlayerMoney(playerid,-800);
  1021. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1022. }
  1023. else
  1024. {
  1025. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1026. }
  1027. }
  1028. if (listitem == 5)
  1029. {
  1030. new vehicle;
  1031. vehicle = GetPlayerVehicleID(playerid);
  1032. if(GetVehicleModel(vehicleid) == 560)
  1033. {
  1034. AddVehicleComponent(vehicle, 1033);
  1035. GivePlayerMoney(playerid,-800);
  1036.  
  1037. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1038. }
  1039. else
  1040. {
  1041. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1042. }
  1043. }
  1044. if (listitem == 6)
  1045. {
  1046. new vehicle;
  1047. vehicle = GetPlayerVehicleID(playerid);
  1048. if(GetVehicleModel(vehicleid) == 560)
  1049. {
  1050. AddVehicleComponent(vehicle, 1138);
  1051. GivePlayerMoney(playerid,-800);
  1052. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1053. }
  1054. else
  1055. {
  1056. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1057. }
  1058. }
  1059. if (listitem == 7)
  1060. {
  1061. new vehicle;
  1062. vehicle = GetPlayerVehicleID(playerid);
  1063. if(GetVehicleModel(vehicleid) == 560)
  1064. {
  1065. AddVehicleComponent(vehicle, 1139);
  1066. GivePlayerMoney(playerid,-800);
  1067. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1068. }
  1069. else
  1070. {
  1071. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1072. }
  1073. }
  1074. if (listitem == 8)
  1075. {
  1076. new vehicle;
  1077. vehicle = GetPlayerVehicleID(playerid);
  1078. if(GetVehicleModel(vehicleid) == 560)
  1079. {
  1080. AddVehicleComponent(vehicle, 1140);
  1081. GivePlayerMoney(playerid,-800);
  1082. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1083. }
  1084. else
  1085. {
  1086. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1087. }
  1088. }
  1089. if (listitem == 9)
  1090. {
  1091. new vehicle;
  1092. vehicle = GetPlayerVehicleID(playerid);
  1093. if(GetVehicleModel(vehicleid) == 560)
  1094. {
  1095. AddVehicleComponent(vehicle, 1141);
  1096. GivePlayerMoney(playerid,-800);
  1097. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1098. }
  1099. else
  1100. {
  1101. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1102. }
  1103. }
  1104. if (listitem == 10)
  1105. {
  1106. new vehicle;
  1107. vehicle = GetPlayerVehicleID(playerid);
  1108. if(GetVehicleModel(vehicleid) == 560)
  1109. {
  1110. AddVehicleComponent(vehicle, 1169);
  1111. GivePlayerMoney(playerid,-800);
  1112. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1113. }
  1114. else
  1115. {
  1116. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1117. }
  1118. }
  1119. if (listitem == 11)
  1120. {
  1121. new vehicle;
  1122. vehicle = GetPlayerVehicleID(playerid);
  1123. if(GetVehicleModel(vehicleid) == 560)
  1124. {
  1125. AddVehicleComponent(vehicle, 1170);
  1126. GivePlayerMoney(playerid,-800);
  1127. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1128. }
  1129. else
  1130. {
  1131. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Sultan");
  1132. }
  1133. }
  1134. }
  1135. }
  1136. //////////////////////////////////////////////////////////////////////////////////////
  1137. if(dialogid == 1233)
  1138. {
  1139. if(response)
  1140. {
  1141. if (listitem == 0)
  1142. {
  1143. if(GetVehicleModel(vehicleid) == 561)
  1144. {
  1145. AddVehicleComponent(vehicleid, 1055);
  1146. GivePlayerMoney(playerid,-800);
  1147. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1148. }
  1149. else
  1150. {
  1151. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1152. }
  1153. }
  1154. if (listitem == 1)
  1155. {
  1156. if(GetVehicleModel(vehicleid) == 561)
  1157. {
  1158. AddVehicleComponent(vehicleid, 1056);
  1159. GivePlayerMoney(playerid,-800);
  1160. AddVehicleComponent(vehicleid, 1062);
  1161. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1162. }
  1163. else
  1164. {
  1165. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1166. }
  1167. }
  1168. if (listitem == 2)
  1169. {
  1170. new vehicle;
  1171. vehicle = GetPlayerVehicleID(playerid);
  1172. if(GetVehicleModel(vehicleid) == 561)
  1173. {
  1174. AddVehicleComponent(vehicle, 1057);
  1175. GivePlayerMoney(playerid,-800);
  1176. AddVehicleComponent(vehicle, 1063);
  1177. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1178. }
  1179. else
  1180. {
  1181. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1182. }
  1183. }
  1184. if (listitem == 3)
  1185. {
  1186. new vehicle;
  1187. vehicle = GetPlayerVehicleID(playerid);
  1188. if(GetVehicleModel(vehicleid) == 561)
  1189. {
  1190. AddVehicleComponent(vehicle, 1058);
  1191. GivePlayerMoney(playerid,-800);
  1192. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1193. }
  1194. else
  1195. {
  1196. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1197. }
  1198. }
  1199. if (listitem == 4)
  1200. {
  1201. new vehicle;
  1202. vehicle = GetPlayerVehicleID(playerid);
  1203. if(GetVehicleModel(vehicleid) == 561)
  1204. {
  1205. AddVehicleComponent(vehicle, 1059);
  1206. GivePlayerMoney(playerid,-800);
  1207. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1208. }
  1209. else
  1210. {
  1211. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1212. }
  1213. }
  1214. if (listitem == 5)
  1215. {
  1216. new vehicle;
  1217. vehicle = GetPlayerVehicleID(playerid);
  1218. if(GetVehicleModel(vehicleid) == 561)
  1219. {
  1220. AddVehicleComponent(vehicle, 1060);
  1221. GivePlayerMoney(playerid,-800);
  1222. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1223. }
  1224. else
  1225. {
  1226. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1227. }
  1228. }
  1229. if (listitem == 6)
  1230. {
  1231. new vehicle;
  1232. vehicle = GetPlayerVehicleID(playerid);
  1233. if(GetVehicleModel(vehicleid) == 561)
  1234. {
  1235. AddVehicleComponent(vehicle, 1061);
  1236. GivePlayerMoney(playerid,-800);
  1237. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1238. }
  1239. else
  1240. {
  1241. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1242. }
  1243. }
  1244. if (listitem == 7)
  1245. {
  1246. new vehicle;
  1247. vehicle = GetPlayerVehicleID(playerid);
  1248. if(GetVehicleModel(vehicleid) == 561)
  1249. {
  1250. AddVehicleComponent(vehicle, 1064);
  1251. GivePlayerMoney(playerid,-800);
  1252. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1253. }
  1254. else
  1255. {
  1256. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1257. }
  1258. }
  1259. if (listitem == 8)
  1260. {
  1261. new vehicle;
  1262. vehicle = GetPlayerVehicleID(playerid);
  1263. if(GetVehicleModel(vehicleid) == 561)
  1264. {
  1265. AddVehicleComponent(vehicle, 1154);
  1266. GivePlayerMoney(playerid,-800);
  1267. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1268. }
  1269. else
  1270. {
  1271. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1272. }
  1273. }
  1274. if (listitem == 9)
  1275. {
  1276. new vehicle;
  1277. vehicle = GetPlayerVehicleID(playerid);
  1278. if(GetVehicleModel(vehicleid) == 561)
  1279. {
  1280. AddVehicleComponent(vehicle, 1155);
  1281. GivePlayerMoney(playerid,-800);
  1282. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1283. }
  1284. else
  1285. {
  1286. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1287. }
  1288. }
  1289. if (listitem == 10)
  1290. {
  1291. new vehicle;
  1292. vehicle = GetPlayerVehicleID(playerid);
  1293. if(GetVehicleModel(vehicleid) == 561)
  1294. {
  1295. AddVehicleComponent(vehicle, 1156);
  1296. GivePlayerMoney(playerid,-800);
  1297. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1298. }
  1299. else
  1300. {
  1301. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1302. }
  1303. }
  1304. if (listitem == 11)
  1305. {
  1306. new vehicle;
  1307. vehicle = GetPlayerVehicleID(playerid);
  1308. if(GetVehicleModel(vehicleid) == 561)
  1309. {
  1310. AddVehicleComponent(vehicle, 1157);
  1311. GivePlayerMoney(playerid,-800);
  1312. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1313. }
  1314. else
  1315. {
  1316. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Stratum");
  1317. }
  1318. }
  1319. }
  1320. }
  1321. //////////////////////////////////////////////////////////////////////////////////////
  1322. if(dialogid == 1232)
  1323. {
  1324. if(response)
  1325. {
  1326. if (listitem == 0)
  1327. {
  1328. if(GetVehicleModel(vehicleid) == 558)
  1329. {
  1330. AddVehicleComponent(vehicleid, 1088);
  1331. GivePlayerMoney(playerid,-800);
  1332. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1333. }
  1334. else
  1335. {
  1336. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1337. }
  1338. }
  1339. if (listitem == 1)
  1340. {
  1341. if(GetVehicleModel(vehicleid) == 558)
  1342. {
  1343. AddVehicleComponent(vehicleid, 1091);
  1344. GivePlayerMoney(playerid,-800);
  1345. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1346. }
  1347. else
  1348. {
  1349. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1350. }
  1351. }
  1352. if (listitem == 2)
  1353. {
  1354. new vehicle;
  1355. vehicle = GetPlayerVehicleID(playerid);
  1356. if(GetVehicleModel(vehicleid) == 558)
  1357. {
  1358. AddVehicleComponent(vehicle, 1089);
  1359. GivePlayerMoney(playerid,-800);
  1360. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1361. }
  1362. else
  1363. {
  1364. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1365. }
  1366. }
  1367. if (listitem == 3)
  1368. {
  1369. new vehicle;
  1370. vehicle = GetPlayerVehicleID(playerid);
  1371. if(GetVehicleModel(vehicleid) == 558)
  1372. {
  1373. AddVehicleComponent(vehicle, 1092);
  1374. GivePlayerMoney(playerid,-800);
  1375. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1376. }
  1377. else
  1378. {
  1379. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1380. }
  1381. }
  1382. if (listitem == 4)
  1383. {
  1384. new vehicle;
  1385. vehicle = GetPlayerVehicleID(playerid);
  1386. if(GetVehicleModel(vehicleid) == 558)
  1387. {
  1388. AddVehicleComponent(vehicle, 1090);
  1389. GivePlayerMoney(playerid,-800);
  1390. AddVehicleComponent(vehicle, 1094);
  1391. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1392. }
  1393. else
  1394. {
  1395. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1396. }
  1397. }
  1398. if (listitem == 5)
  1399. {
  1400. new vehicle;
  1401. vehicle = GetPlayerVehicleID(playerid);
  1402. if(GetVehicleModel(vehicleid) == 558)
  1403. {
  1404. AddVehicleComponent(vehicle, 1093);
  1405. GivePlayerMoney(playerid,-800);
  1406. AddVehicleComponent(vehicle, 1095);
  1407. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1408. }
  1409. else
  1410. {
  1411. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1412. }
  1413. }
  1414. if (listitem == 6)
  1415. {
  1416. new vehicle;
  1417. vehicle = GetPlayerVehicleID(playerid);
  1418. if(GetVehicleModel(vehicleid) == 558)
  1419. {
  1420. AddVehicleComponent(vehicle, 1163);
  1421. GivePlayerMoney(playerid,-800);
  1422. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1423. }
  1424. else
  1425. {
  1426. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1427. }
  1428. }
  1429. if (listitem == 7)
  1430. {
  1431. new vehicle;
  1432. vehicle = GetPlayerVehicleID(playerid);
  1433. if(GetVehicleModel(vehicleid) == 558)
  1434. {
  1435. AddVehicleComponent(vehicle, 1164);
  1436. GivePlayerMoney(playerid,-800);
  1437. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1438. }
  1439. else
  1440. {
  1441. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1442. }
  1443. }
  1444. if (listitem == 8)
  1445. {
  1446. new vehicle;
  1447. vehicle = GetPlayerVehicleID(playerid);
  1448. if(GetVehicleModel(vehicleid) == 558)
  1449. {
  1450. AddVehicleComponent(vehicle, 1165);
  1451. GivePlayerMoney(playerid,-800);
  1452. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1453. }
  1454. else
  1455. {
  1456. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1457. }
  1458. }
  1459. if (listitem == 9)
  1460. {
  1461. new vehicle;
  1462. vehicle = GetPlayerVehicleID(playerid);
  1463. if(GetVehicleModel(vehicleid) == 558)
  1464. {
  1465. AddVehicleComponent(vehicle, 1166);
  1466. GivePlayerMoney(playerid,-800);
  1467. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1468. }
  1469. else
  1470. {
  1471. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1472. }
  1473. }
  1474. if (listitem == 10)
  1475. {
  1476. new vehicle;
  1477. vehicle = GetPlayerVehicleID(playerid);
  1478. if(GetVehicleModel(vehicleid) == 558)
  1479. {
  1480. AddVehicleComponent(vehicle, 1167);
  1481. GivePlayerMoney(playerid,-800);
  1482. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1483. }
  1484. else
  1485. {
  1486. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1487. }
  1488. }
  1489. if (listitem == 11)
  1490. {
  1491. new vehicle;
  1492. vehicle = GetPlayerVehicleID(playerid);
  1493. if(GetVehicleModel(vehicleid) == 558)
  1494. {
  1495. AddVehicleComponent(vehicle, 1168);
  1496. GivePlayerMoney(playerid,-800);
  1497. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1498. }
  1499. else
  1500. {
  1501. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Uranus");
  1502. }
  1503. }
  1504. }
  1505. }
  1506. //////////////////////////////////////////////////////////////////////////////////////
  1507. if(dialogid == 1234)
  1508. {
  1509. if(response)
  1510. {
  1511. if (listitem == 0)
  1512. {
  1513. if(GetVehicleModel(vehicleid) == 536)
  1514. {
  1515. AddVehicleComponent(vehicleid, 1103);
  1516. GivePlayerMoney(playerid,-800);
  1517. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1518. }
  1519. else
  1520. {
  1521. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1522. }
  1523. }
  1524. if (listitem == 1)
  1525. {
  1526. if(GetVehicleModel(vehicleid) == 536)
  1527. {
  1528. AddVehicleComponent(vehicleid, 1128);
  1529. GivePlayerMoney(playerid,-800);
  1530. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1531. }
  1532. else
  1533. {
  1534. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1535. }
  1536. }
  1537. if (listitem == 2)
  1538. {
  1539. new vehicle;
  1540. vehicle = GetPlayerVehicleID(playerid);
  1541. if(GetVehicleModel(vehicleid) == 536)
  1542. {
  1543. AddVehicleComponent(vehicle, 1104);
  1544. GivePlayerMoney(playerid,-800);
  1545. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1546. }
  1547. else
  1548. {
  1549. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1550. }
  1551. }
  1552. if (listitem == 3)
  1553. {
  1554. new vehicle;
  1555. vehicle = GetPlayerVehicleID(playerid);
  1556. if(GetVehicleModel(vehicleid) == 536)
  1557. {
  1558. AddVehicleComponent(vehicle, 1105);
  1559. GivePlayerMoney(playerid,-800);
  1560.  
  1561. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1562. }
  1563. else
  1564. {
  1565. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1566. }
  1567. }
  1568. if (listitem == 4)
  1569. {
  1570. new vehicle;
  1571. vehicle = GetPlayerVehicleID(playerid);
  1572. if(GetVehicleModel(vehicleid) == 536)
  1573. {
  1574. AddVehicleComponent(vehicle, 1107);
  1575. GivePlayerMoney(playerid,-800);
  1576. AddVehicleComponent(vehicle, 1108);
  1577. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1578. }
  1579. else
  1580. {
  1581. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1582. }
  1583. }
  1584. if (listitem == 5)
  1585. {
  1586. new vehicle;
  1587. vehicle = GetPlayerVehicleID(playerid);
  1588. if(GetVehicleModel(vehicleid) == 536)
  1589. {
  1590. AddVehicleComponent(vehicle, 1181);
  1591. GivePlayerMoney(playerid,-800);
  1592. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1593. }
  1594. else
  1595. {
  1596. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1597. }
  1598. }
  1599. if (listitem == 6)
  1600. {
  1601. new vehicle;
  1602. vehicle = GetPlayerVehicleID(playerid);
  1603. if(GetVehicleModel(vehicleid) == 536)
  1604. {
  1605. AddVehicleComponent(vehicle, 1182);
  1606. GivePlayerMoney(playerid,-800);
  1607. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1608. }
  1609. else
  1610. {
  1611. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1612. }
  1613. }
  1614. if (listitem == 7)
  1615. {
  1616. new vehicle;
  1617. vehicle = GetPlayerVehicleID(playerid);
  1618. if(GetVehicleModel(vehicleid) == 536)
  1619. {
  1620. AddVehicleComponent(vehicle, 1183);
  1621. GivePlayerMoney(playerid,-800);
  1622. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1623. }
  1624. else
  1625. {
  1626. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1627. }
  1628. }
  1629. if (listitem == 8)
  1630. {
  1631. new vehicle;
  1632. vehicle = GetPlayerVehicleID(playerid);
  1633. if(GetVehicleModel(vehicleid) == 536)
  1634. {
  1635. AddVehicleComponent(vehicle, 1184);
  1636. GivePlayerMoney(playerid,-800);
  1637. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1638. }
  1639. else
  1640. {
  1641. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Blade");
  1642. }
  1643. }
  1644. }
  1645. }
  1646. //////////////////////////////////////////////////////////////////////////////////////
  1647. if(dialogid == 1235)
  1648. {
  1649. if(response)
  1650. {
  1651. if (listitem == 0)
  1652. {
  1653. if(GetVehicleModel(vehicleid) == 567)
  1654. {
  1655. AddVehicleComponent(vehicleid, 1102);
  1656. GivePlayerMoney(playerid,-800);
  1657. AddVehicleComponent(vehicleid, 1133);
  1658. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1659. }
  1660. else
  1661. {
  1662. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1663. }
  1664. }
  1665. if (listitem == 1)
  1666. {
  1667. if(GetVehicleModel(vehicleid) == 567)
  1668. {
  1669. AddVehicleComponent(vehicleid, 1129);
  1670. GivePlayerMoney(playerid,-800);
  1671. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1672. }
  1673. else
  1674. {
  1675. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1676. }
  1677. }
  1678. if (listitem == 2)
  1679. {
  1680. new vehicle;
  1681. vehicle = GetPlayerVehicleID(playerid);
  1682. if(GetVehicleModel(vehicleid) == 567)
  1683. {
  1684. AddVehicleComponent(vehicle, 1132);
  1685. GivePlayerMoney(playerid,-800);
  1686. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1687. }
  1688. else
  1689. {
  1690. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1691. }
  1692. }
  1693. if (listitem == 3)
  1694. {
  1695. new vehicle;
  1696. vehicle = GetPlayerVehicleID(playerid);
  1697. if(GetVehicleModel(vehicleid) == 567)
  1698. {
  1699. AddVehicleComponent(vehicle, 1130);
  1700. GivePlayerMoney(playerid,-800);
  1701. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1702. }
  1703. else
  1704. {
  1705. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1706. }
  1707. }
  1708. if (listitem == 4)
  1709. {
  1710. new vehicle;
  1711. vehicle = GetPlayerVehicleID(playerid);
  1712. if(GetVehicleModel(vehicleid) == 567)
  1713. {
  1714. AddVehicleComponent(vehicle, 1132);
  1715. GivePlayerMoney(playerid,-800);
  1716. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1717. }
  1718. else
  1719. {
  1720. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1721. }
  1722. }
  1723. if (listitem == 5)
  1724. {
  1725. new vehicle;
  1726. vehicle = GetPlayerVehicleID(playerid);
  1727. if(GetVehicleModel(vehicleid) == 567)
  1728. {
  1729. AddVehicleComponent(vehicle, 1186);
  1730. GivePlayerMoney(playerid,-800);
  1731. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1732. }
  1733. else
  1734. {
  1735. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1736. }
  1737. }
  1738. if (listitem == 6)
  1739. {
  1740. new vehicle;
  1741. vehicle = GetPlayerVehicleID(playerid);
  1742. if(GetVehicleModel(vehicleid) == 567)
  1743. {
  1744. AddVehicleComponent(vehicle, 1187);
  1745. GivePlayerMoney(playerid,-800);
  1746. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1747. }
  1748. else
  1749. {
  1750. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1751. }
  1752. }
  1753. if (listitem == 7)
  1754. {
  1755. new vehicle;
  1756. vehicle = GetPlayerVehicleID(playerid);
  1757. if(GetVehicleModel(vehicleid) == 567)
  1758. {
  1759. AddVehicleComponent(vehicle, 1188);
  1760. GivePlayerMoney(playerid,-800);
  1761. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1762. }
  1763. else
  1764. {
  1765. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1766. }
  1767. }
  1768. if (listitem == 8)
  1769. {
  1770. new vehicle;
  1771. vehicle = GetPlayerVehicleID(playerid);
  1772. if(GetVehicleModel(vehicleid) == 567)
  1773. {
  1774. AddVehicleComponent(vehicle, 1189);
  1775. GivePlayerMoney(playerid,-800);
  1776. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1777. }
  1778. else
  1779. {
  1780. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Savanna");
  1781. }
  1782. }
  1783. }
  1784. }
  1785. //////////////////////////////////////////////////////////////////////////////////////
  1786. if(dialogid == 1236)
  1787. {
  1788. if(response)
  1789. {
  1790. if (listitem == 0)
  1791. {
  1792. if(GetVehicleModel(vehicleid) == 575)
  1793. {
  1794. AddVehicleComponent(vehicleid, 1042);
  1795. GivePlayerMoney(playerid,-800);
  1796. AddVehicleComponent(vehicleid, 1099);
  1797. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1798. }
  1799. else
  1800. {
  1801. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1802. }
  1803. }
  1804. if (listitem == 1)
  1805. {
  1806. if(GetVehicleModel(vehicleid) == 575)
  1807. {
  1808. AddVehicleComponent(vehicleid, 1043);
  1809. GivePlayerMoney(playerid,-800);
  1810. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1811. }
  1812. else
  1813. {
  1814. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1815. }
  1816. }
  1817. if (listitem == 2)
  1818. {
  1819. new vehicle;
  1820. vehicle = GetPlayerVehicleID(playerid);
  1821. if(GetVehicleModel(vehicleid) == 575)
  1822. {
  1823. AddVehicleComponent(vehicle, 1044);
  1824. GivePlayerMoney(playerid,-800);
  1825. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1826. }
  1827. else
  1828. {
  1829. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1830. }
  1831. }
  1832. if (listitem == 3)
  1833. {
  1834. new vehicle;
  1835. vehicle = GetPlayerVehicleID(playerid);
  1836. if(GetVehicleModel(vehicleid) == 575)
  1837. {
  1838. AddVehicleComponent(vehicle, 1174);
  1839. GivePlayerMoney(playerid,-800);
  1840. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1841. }
  1842. else
  1843. {
  1844. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1845. }
  1846. }
  1847. if (listitem == 4)
  1848. {
  1849. new vehicle;
  1850. vehicle = GetPlayerVehicleID(playerid);
  1851. if(GetVehicleModel(vehicleid) == 575)
  1852. {
  1853. AddVehicleComponent(vehicle, 1175);
  1854. GivePlayerMoney(playerid,-800);
  1855. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1856. }
  1857. else
  1858. {
  1859. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1860. }
  1861. }
  1862. if (listitem == 5)
  1863. {
  1864. new vehicle;
  1865. vehicle = GetPlayerVehicleID(playerid);
  1866. if(GetVehicleModel(vehicleid) == 575)
  1867. {
  1868. AddVehicleComponent(vehicle, 1176);
  1869. GivePlayerMoney(playerid,-800);
  1870. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1871. }
  1872. else
  1873. {
  1874. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1875. }
  1876. }
  1877. if (listitem == 6)
  1878. {
  1879. new vehicle;
  1880. vehicle = GetPlayerVehicleID(playerid);
  1881. if(GetVehicleModel(vehicleid) == 575)
  1882. {
  1883. AddVehicleComponent(vehicle, 1177);
  1884. GivePlayerMoney(playerid,-800);
  1885. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1886. }
  1887. else
  1888. {
  1889. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Broadway");
  1890. }
  1891. }
  1892. }
  1893. }
  1894. //////////////////////////////////////////////////////////////////////////////////////
  1895. if(dialogid == 1237)
  1896. {
  1897. if(response)
  1898. {
  1899. if (listitem == 0)
  1900. {
  1901. if(GetVehicleModel(vehicleid) == 534)
  1902. {
  1903. AddVehicleComponent(vehicleid, 1100);
  1904. GivePlayerMoney(playerid,-800);
  1905. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1906. }
  1907. else
  1908. {
  1909. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1910. }
  1911. }
  1912. if (listitem == 1)
  1913. {
  1914. if(GetVehicleModel(vehicleid) == 534)
  1915. {
  1916. AddVehicleComponent(vehicleid, 1101);
  1917. GivePlayerMoney(playerid,-800);
  1918. AddVehicleComponent(vehicleid, 1122);
  1919. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1920. }
  1921. else
  1922. {
  1923. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1924. }
  1925. }
  1926. if (listitem == 2)
  1927. {
  1928. new vehicle;
  1929. vehicle = GetPlayerVehicleID(playerid);
  1930. if(GetVehicleModel(vehicleid) == 534)
  1931. {
  1932. AddVehicleComponent(vehicle, 1106);
  1933. GivePlayerMoney(playerid,-800);
  1934. AddVehicleComponent(vehicleid, 1124);
  1935. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1936. }
  1937. else
  1938. {
  1939. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1940. }
  1941. }
  1942. if (listitem == 3)
  1943. {
  1944. new vehicle;
  1945. vehicle = GetPlayerVehicleID(playerid);
  1946. if(GetVehicleModel(vehicleid) == 534)
  1947. {
  1948. AddVehicleComponent(vehicle, 1123);
  1949. GivePlayerMoney(playerid,-800);
  1950. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1951. }
  1952. else
  1953. {
  1954. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1955. }
  1956. }
  1957. if (listitem == 4)
  1958. {
  1959. new vehicle;
  1960. vehicle = GetPlayerVehicleID(playerid);
  1961. if(GetVehicleModel(vehicleid) == 534)
  1962. {
  1963. AddVehicleComponent(vehicle, 1125);
  1964. GivePlayerMoney(playerid,-800);
  1965. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1966. }
  1967. else
  1968. {
  1969. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1970. }
  1971. }
  1972. if (listitem == 5)
  1973. {
  1974. new vehicle;
  1975. vehicle = GetPlayerVehicleID(playerid);
  1976. if(GetVehicleModel(vehicleid) == 534)
  1977. {
  1978. AddVehicleComponent(vehicle, 1126);
  1979. GivePlayerMoney(playerid,-800);
  1980. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1981. }
  1982. else
  1983. {
  1984. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  1985. }
  1986. }
  1987. if (listitem == 6)
  1988. {
  1989. new vehicle;
  1990. vehicle = GetPlayerVehicleID(playerid);
  1991. if(GetVehicleModel(vehicleid) == 534)
  1992. {
  1993. AddVehicleComponent(vehicle, 1127);
  1994. GivePlayerMoney(playerid,-800);
  1995. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  1996. }
  1997. else
  1998. {
  1999. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  2000. }
  2001. }
  2002. if (listitem == 7)
  2003. {
  2004. new vehicle;
  2005. vehicle = GetPlayerVehicleID(playerid);
  2006. if(GetVehicleModel(vehicleid) == 534)
  2007. {
  2008. AddVehicleComponent(vehicle, 1178);
  2009. GivePlayerMoney(playerid,-800);
  2010. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2011. }
  2012. else
  2013. {
  2014. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  2015. }
  2016. }
  2017. if (listitem == 8)
  2018. {
  2019. new vehicle;
  2020. vehicle = GetPlayerVehicleID(playerid);
  2021. if(GetVehicleModel(vehicleid) == 534)
  2022. {
  2023. AddVehicleComponent(vehicle, 1179);
  2024. GivePlayerMoney(playerid,-800);
  2025. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2026. }
  2027. else
  2028. {
  2029. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  2030. }
  2031. }
  2032. if (listitem == 9)
  2033. {
  2034. new vehicle;
  2035. vehicle = GetPlayerVehicleID(playerid);
  2036. if(GetVehicleModel(vehicleid) == 534)
  2037. {
  2038. AddVehicleComponent(vehicle, 1180);
  2039. GivePlayerMoney(playerid,-800);
  2040. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2041. }
  2042. else
  2043. {
  2044. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  2045. }
  2046. }
  2047. if (listitem == 10)
  2048. {
  2049. new vehicle;
  2050. vehicle = GetPlayerVehicleID(playerid);
  2051. if(GetVehicleModel(vehicleid) == 534)
  2052. {
  2053. AddVehicleComponent(vehicle, 1185);
  2054. GivePlayerMoney(playerid,-800);
  2055. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2056. }
  2057. else
  2058. {
  2059. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Remington");
  2060. }
  2061. }
  2062. }
  2063. }
  2064. //////////////////////////////////////////////////////////////////////////////////////
  2065. if(dialogid == 1238)
  2066. {
  2067. if(response)
  2068. {
  2069. if (listitem == 0)
  2070. {
  2071. if(GetVehicleModel(vehicleid) == 535)
  2072. {
  2073. AddVehicleComponent(vehicleid, 1109);
  2074. GivePlayerMoney(playerid,-800);
  2075. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2076. }
  2077. else
  2078. {
  2079. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2080. }
  2081. }
  2082. if (listitem == 1)
  2083. {
  2084. if(GetVehicleModel(vehicleid) == 535)
  2085. {
  2086.  
  2087. AddVehicleComponent(vehicleid, 1110);
  2088. GivePlayerMoney(playerid,-800);
  2089. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2090. }
  2091. else
  2092. {
  2093. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2094. }
  2095. }
  2096. if (listitem == 2)
  2097. {
  2098. new vehicle;
  2099. vehicle = GetPlayerVehicleID(playerid);
  2100. if(GetVehicleModel(vehicleid) == 535)
  2101. {
  2102. AddVehicleComponent(vehicle, 1111);
  2103. GivePlayerMoney(playerid,-800);
  2104. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2105. }
  2106. else
  2107. {
  2108. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2109. }
  2110. }
  2111. if (listitem == 3)
  2112. {
  2113. new vehicle;
  2114. vehicle = GetPlayerVehicleID(playerid);
  2115. if(GetVehicleModel(vehicleid) == 535)
  2116. {
  2117. AddVehicleComponent(vehicle, 1112);
  2118. GivePlayerMoney(playerid,-800);
  2119. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2120. }
  2121. else
  2122. {
  2123. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2124. }
  2125. }
  2126. if (listitem == 4)
  2127. {
  2128. new vehicle;
  2129. vehicle = GetPlayerVehicleID(playerid);
  2130. if(GetVehicleModel(vehicleid) == 535)
  2131. {
  2132. AddVehicleComponent(vehicle, 1113);
  2133. GivePlayerMoney(playerid,-800);
  2134. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2135. }
  2136. else
  2137. {
  2138. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2139. }
  2140. }
  2141. if (listitem == 5)
  2142. {
  2143. new vehicle;
  2144. vehicle = GetPlayerVehicleID(playerid);
  2145. if(GetVehicleModel(vehicleid) == 535)
  2146. {
  2147. AddVehicleComponent(vehicle, 1114);
  2148. GivePlayerMoney(playerid,-800);
  2149. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2150. }
  2151. else
  2152. {
  2153. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2154. }
  2155. }
  2156. if (listitem == 6)
  2157. {
  2158. new vehicle;
  2159. vehicle = GetPlayerVehicleID(playerid);
  2160. if(GetVehicleModel(vehicleid) == 535)
  2161. {
  2162. AddVehicleComponent(vehicle, 1115);
  2163. GivePlayerMoney(playerid,-800);
  2164. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2165. }
  2166. else
  2167. {
  2168. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2169. }
  2170. }
  2171. if (listitem == 7)
  2172. {
  2173. new vehicle;
  2174. vehicle = GetPlayerVehicleID(playerid);
  2175. if(GetVehicleModel(vehicleid) == 535)
  2176. {
  2177. AddVehicleComponent(vehicle, 1116);
  2178. GivePlayerMoney(playerid,-800);
  2179. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2180. }
  2181. else
  2182. {
  2183. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2184. }
  2185. }
  2186. if (listitem == 8)
  2187. {
  2188. new vehicle;
  2189. vehicle = GetPlayerVehicleID(playerid);
  2190. if(GetVehicleModel(vehicleid) == 535)
  2191. {
  2192. AddVehicleComponent(vehicle, 1117);
  2193. GivePlayerMoney(playerid,-800);
  2194. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2195. }
  2196. else
  2197. {
  2198. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2199. }
  2200. }
  2201. if (listitem == 9)
  2202. {
  2203. new vehicle;
  2204. vehicle = GetPlayerVehicleID(playerid);
  2205. if(GetVehicleModel(vehicleid) == 535)
  2206. {
  2207. AddVehicleComponent(vehicle, 1120);
  2208. AddVehicleComponent(vehicle, 1118);
  2209. GivePlayerMoney(playerid,-800);
  2210. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2211. }
  2212. else
  2213. {
  2214. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2215. }
  2216. }
  2217. if (listitem == 10)
  2218. {
  2219. new vehicle;
  2220. vehicle = GetPlayerVehicleID(playerid);
  2221. if(GetVehicleModel(vehicleid) == 535)
  2222. {
  2223. AddVehicleComponent(vehicle, 1121);
  2224. GivePlayerMoney(playerid,-800);
  2225. AddVehicleComponent(vehicle, 1119);
  2226. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2227. }
  2228. else
  2229. {
  2230. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Slamvan");
  2231. }
  2232. }
  2233. }
  2234. }
  2235. /////////////////////////////////////////////////////////////////////////
  2236. if(dialogid == 1239)
  2237. {
  2238. if(response)
  2239. {
  2240. if (listitem == 0)
  2241. {
  2242. if(GetVehicleModel(vehicleid) == 576)
  2243. {
  2244. AddVehicleComponent(vehicleid, 1134);
  2245. GivePlayerMoney(playerid,-800);
  2246. AddVehicleComponent(vehicleid, 1137);
  2247. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2248. }
  2249. else
  2250. {
  2251. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2252. }
  2253. }
  2254. if (listitem == 1)
  2255. {
  2256. if(GetVehicleModel(vehicleid) == 576)
  2257. {
  2258. AddVehicleComponent(vehicleid, 1135);
  2259. GivePlayerMoney(playerid,-800);
  2260. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2261. }
  2262. else
  2263. {
  2264. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2265. }
  2266. }
  2267. if (listitem == 2)
  2268. {
  2269. new vehicle;
  2270. vehicle = GetPlayerVehicleID(playerid);
  2271. if(GetVehicleModel(vehicleid) == 576)
  2272. {
  2273. AddVehicleComponent(vehicle, 1136);
  2274. GivePlayerMoney(playerid,-800);
  2275. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2276. }
  2277. else
  2278. {
  2279. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2280. }
  2281. }
  2282. if (listitem == 3)
  2283. {
  2284. new vehicle;
  2285. vehicle = GetPlayerVehicleID(playerid);
  2286. if(GetVehicleModel(vehicleid) == 576)
  2287. {
  2288. AddVehicleComponent(vehicle, 1190);
  2289. GivePlayerMoney(playerid,-800);
  2290. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2291. }
  2292. else
  2293. {
  2294. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2295. }
  2296. }
  2297. if (listitem == 4)
  2298. {
  2299. new vehicle;
  2300. vehicle = GetPlayerVehicleID(playerid);
  2301. if(GetVehicleModel(vehicleid) == 576)
  2302. {
  2303. AddVehicleComponent(vehicle, 1191);
  2304. GivePlayerMoney(playerid,-800);
  2305. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2306. }
  2307. else
  2308. {
  2309. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2310. }
  2311. }
  2312. if (listitem == 5)
  2313. {
  2314. new vehicle;
  2315. vehicle = GetPlayerVehicleID(playerid);
  2316. if(GetVehicleModel(vehicleid) == 576)
  2317. {
  2318. AddVehicleComponent(vehicle, 1192);
  2319. GivePlayerMoney(playerid,-800);
  2320. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2321. }
  2322. else
  2323. {
  2324. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2325. }
  2326. }
  2327. if (listitem == 6)
  2328. {
  2329. new vehicle;
  2330. vehicle = GetPlayerVehicleID(playerid);
  2331. if(GetVehicleModel(vehicleid) == 576)
  2332. {
  2333. AddVehicleComponent(vehicle, 1193);
  2334. GivePlayerMoney(playerid,-800);
  2335. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2336. }
  2337. else
  2338. {
  2339. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Tornado");
  2340. }
  2341. }
  2342. }
  2343. }
  2344. /////////////////////////////////////////////////////////////////////////
  2345. if(dialogid == 1240)
  2346. {
  2347. if(response)
  2348. {
  2349. if (listitem == 0)
  2350. {
  2351. if(GetVehicleModel(vehicleid) >=1)
  2352. {
  2353. AddVehicleComponent(vehicleid, 1000);
  2354. GivePlayerMoney(playerid,-800);
  2355. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2356. }
  2357. else
  2358. {
  2359. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2360. }
  2361. }
  2362. if (listitem == 1)
  2363. {
  2364. if(GetVehicleModel(vehicleid) >=1)
  2365. {
  2366. AddVehicleComponent(vehicleid, 1001);
  2367. GivePlayerMoney(playerid,-800);
  2368. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2369. }
  2370. else
  2371. {
  2372. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2373. }
  2374. }
  2375. if (listitem == 2)
  2376. {
  2377. new vehicle;
  2378. vehicle = GetPlayerVehicleID(playerid);
  2379. if(GetVehicleModel(vehicleid) >=1)
  2380. {
  2381. AddVehicleComponent(vehicle, 1002);
  2382. GivePlayerMoney(playerid,-800);
  2383. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2384. }
  2385. else
  2386. {
  2387. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2388. }
  2389. }
  2390. if (listitem == 3)
  2391. {
  2392. new vehicle;
  2393. vehicle = GetPlayerVehicleID(playerid);
  2394. if(GetVehicleModel(vehicleid) >=1)
  2395. {
  2396. AddVehicleComponent(vehicle, 1003);
  2397. GivePlayerMoney(playerid,-800);
  2398. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2399. }
  2400. else
  2401. {
  2402. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2403. }
  2404. }
  2405. if (listitem == 4)
  2406. {
  2407. new vehicle;
  2408. vehicle = GetPlayerVehicleID(playerid);
  2409. if(GetVehicleModel(vehicleid) >=1)
  2410. {
  2411. AddVehicleComponent(vehicle, 1015);
  2412. GivePlayerMoney(playerid,-800);
  2413. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2414. }
  2415. else
  2416. {
  2417. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2418. }
  2419. }
  2420. if (listitem == 5)
  2421. {
  2422. new vehicle;
  2423. vehicle = GetPlayerVehicleID(playerid);
  2424. if(GetVehicleModel(vehicleid) >=1)
  2425. {
  2426. AddVehicleComponent(vehicle, 1016);
  2427. GivePlayerMoney(playerid,-800);
  2428. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2429. }
  2430. else
  2431. {
  2432. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2433. }
  2434. }
  2435. }
  2436. }
  2437. ////////////////////////////////////////////////////////////////////////
  2438. if(dialogid == 1241)
  2439. {
  2440. if(response)
  2441. {
  2442. if (listitem == 0)
  2443. {
  2444. if(GetVehicleModel(vehicleid) >=1)
  2445. {
  2446. AddVehicleComponent(vehicleid, 1004);
  2447. GivePlayerMoney(playerid,-800);
  2448. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2449. }
  2450. else
  2451. {
  2452. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2453. }
  2454. }
  2455. if (listitem == 1)
  2456. {
  2457. if(GetVehicleModel(vehicleid) >=1)
  2458. {
  2459. AddVehicleComponent(vehicleid, 1005);
  2460. GivePlayerMoney(playerid,-800);
  2461. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2462. }
  2463. else
  2464. {
  2465. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2466. }
  2467. }
  2468. if (listitem == 2)
  2469. {
  2470. new vehicle;
  2471. vehicle = GetPlayerVehicleID(playerid);
  2472. if(GetVehicleModel(vehicleid) >=1)
  2473. {
  2474. AddVehicleComponent(vehicle, 1006);
  2475. GivePlayerMoney(playerid,-800);
  2476. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2477. }
  2478. else
  2479. {
  2480. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2481. }
  2482. }
  2483. if (listitem == 3)
  2484. {
  2485. new vehicle;
  2486. vehicle = GetPlayerVehicleID(playerid);
  2487. if(GetVehicleModel(vehicleid) >=1)
  2488. {
  2489. AddVehicleComponent(vehicle, 1011);
  2490. GivePlayerMoney(playerid,-800);
  2491. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2492. }
  2493. else
  2494. {
  2495. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2496. }
  2497. }
  2498. if (listitem == 4)
  2499. {
  2500. new vehicle;
  2501. vehicle = GetPlayerVehicleID(playerid);
  2502. if(GetVehicleModel(vehicleid) >=1)
  2503. {
  2504. AddVehicleComponent(vehicle, 1012);
  2505. GivePlayerMoney(playerid,-800);
  2506. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2507. }
  2508. else
  2509. {
  2510. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2511. }
  2512. }
  2513. }
  2514. }
  2515. //////////////////////////////////////////////////////////////////////////////////////
  2516. if(dialogid == 1242)
  2517. {
  2518. if(response)
  2519. {
  2520. if (listitem == 0)
  2521. {
  2522. if(GetVehicleModel(vehicleid) >=1)
  2523. {
  2524. AddVehicleComponent(vehicleid, 1013);
  2525. GivePlayerMoney(playerid,-800);
  2526. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2527. }
  2528. else
  2529. {
  2530. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2531. }
  2532. }
  2533. if (listitem == 1)
  2534. {
  2535. if(GetVehicleModel(vehicleid) >=1)
  2536. {
  2537. AddVehicleComponent(vehicleid, 1024);
  2538. GivePlayerMoney(playerid,-800);
  2539. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2540. }
  2541. else
  2542. {
  2543. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2544. }
  2545. }
  2546.  
  2547. }
  2548. }
  2549. //////////////////////////////////////////////////////////////////////////////////////
  2550. if(dialogid == 1243)
  2551. {
  2552. if(response)
  2553. {
  2554. if (listitem == 0)
  2555. {
  2556. if(GetVehicleModel(vehicleid) >=1)
  2557. {
  2558. AddVehicleComponent(vehicleid, 1142);
  2559. GivePlayerMoney(playerid,-800);
  2560. AddVehicleComponent(vehicleid, 1143);
  2561. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2562. }
  2563. else
  2564. {
  2565. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2566. }
  2567. }
  2568. if (listitem == 1)
  2569. {
  2570. if(GetVehicleModel(vehicleid) >=1)
  2571. {
  2572. AddVehicleComponent(vehicleid, 1142);
  2573. GivePlayerMoney(playerid,-800);
  2574. AddVehicleComponent(vehicleid, 1145);
  2575. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2576. }
  2577. else
  2578. {
  2579. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2580. }
  2581. }
  2582. }
  2583. }
  2584. //////////////////////////////////////////////////////////////////////////////////////
  2585. if(dialogid == 1244)
  2586. {
  2587. if(response)
  2588. {
  2589. if (listitem == 0)
  2590. {
  2591. if(GetVehicleModel(vehicleid) >=1)
  2592. {
  2593. AddVehicleComponent(vehicleid, 1007);
  2594. GivePlayerMoney(playerid,-800);
  2595. AddVehicleComponent(vehicleid, 1017);
  2596. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2597. }
  2598. else
  2599. {
  2600. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2601. }
  2602. }
  2603. }
  2604. }
  2605. //////////////////////////////////////////////////////////////////////////////////////
  2606. if(dialogid == 1245)
  2607. {
  2608. if(response)
  2609. {
  2610. if (listitem == 0)
  2611. {
  2612. if(GetVehicleModel(vehicleid) >=1)
  2613. {
  2614. AddVehicleComponent(vehicleid, 1018);
  2615. GivePlayerMoney(playerid,-800);
  2616. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2617. }
  2618. else
  2619. {
  2620. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2621. }
  2622. }
  2623. if (listitem == 1)
  2624. {
  2625. if(GetVehicleModel(vehicleid) >=1)
  2626. {
  2627. AddVehicleComponent(vehicleid, 1019);
  2628. GivePlayerMoney(playerid,-800);
  2629. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2630. }
  2631. else
  2632. {
  2633. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2634. }
  2635. }
  2636. if (listitem == 2)
  2637. {
  2638. if(GetVehicleModel(vehicleid) >=1)
  2639. {
  2640. AddVehicleComponent(vehicleid, 1020);
  2641. GivePlayerMoney(playerid,-800);
  2642. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2643. }
  2644. else
  2645. {
  2646. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2647. }
  2648. }
  2649. if (listitem == 3)
  2650. {
  2651. if(GetVehicleModel(vehicleid) >=1)
  2652. {
  2653. AddVehicleComponent(vehicleid, 1021);
  2654. GivePlayerMoney(playerid,-800);
  2655. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2656. }
  2657. else
  2658. {
  2659. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2660. }
  2661. }
  2662. if (listitem == 4)
  2663. {
  2664. if(GetVehicleModel(vehicleid) >=1)
  2665. {
  2666. AddVehicleComponent(vehicleid, 1022);
  2667. GivePlayerMoney(playerid,-800);
  2668. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2669. }
  2670. else
  2671. {
  2672. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2673. }
  2674. }
  2675. }
  2676. }
  2677. //////////////////////////////////////////////////////////////////////////////////////
  2678. if(dialogid == 1246)
  2679. {
  2680. if(response)
  2681. {
  2682. if (listitem == 0)
  2683. {
  2684. if(GetVehicleModel(vehicleid) >=1)
  2685. {
  2686. AddVehicleComponent(vehicleid, 1096);
  2687. GivePlayerMoney(playerid,-800);
  2688. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2689. }
  2690. else
  2691. {
  2692. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2693. }
  2694. }
  2695. if (listitem == 1)
  2696. {
  2697. if(GetVehicleModel(vehicleid) >=1)
  2698. {
  2699. AddVehicleComponent(vehicleid, 1097);
  2700. GivePlayerMoney(playerid,-800);
  2701. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2702. }
  2703. else
  2704. {
  2705. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2706. }
  2707. }
  2708. if (listitem == 2)
  2709. {
  2710. if(GetVehicleModel(vehicleid) >=1)
  2711. {
  2712. AddVehicleComponent(vehicleid, 1098);
  2713. GivePlayerMoney(playerid,-800);
  2714. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2715. }
  2716. else
  2717. {
  2718. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2719. }
  2720. }
  2721. if (listitem == 3)
  2722. {
  2723. if(GetVehicleModel(vehicleid) >=1)
  2724. {
  2725. AddVehicleComponent(vehicleid, 1073);
  2726. GivePlayerMoney(playerid,-800);
  2727. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2728. }
  2729. else
  2730. {
  2731. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2732. }
  2733. }
  2734. if (listitem == 4)
  2735. {
  2736. if(GetVehicleModel(vehicleid) >=1)
  2737. {
  2738. AddVehicleComponent(vehicleid, 1074);
  2739. GivePlayerMoney(playerid,-800);
  2740. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2741. }
  2742. else
  2743. {
  2744. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2745. }
  2746. }
  2747. if (listitem == 5)
  2748. {
  2749. if(GetVehicleModel(vehicleid) >=1)
  2750. {
  2751. AddVehicleComponent(vehicleid, 1075);
  2752. GivePlayerMoney(playerid,-800);
  2753. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2754. }
  2755. else
  2756. {
  2757. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2758. }
  2759. }
  2760. if (listitem == 6)
  2761. {
  2762. if(GetVehicleModel(vehicleid) >=1)
  2763. {
  2764. AddVehicleComponent(vehicleid, 1076);
  2765. GivePlayerMoney(playerid,-800);
  2766. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2767. }
  2768. else
  2769. {
  2770. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2771. }
  2772. }
  2773. if (listitem == 7)
  2774. {
  2775. if(GetVehicleModel(vehicleid) >=1)
  2776. {
  2777. AddVehicleComponent(vehicleid, 1077);
  2778. GivePlayerMoney(playerid,-800);
  2779. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2780. }
  2781. else
  2782. {
  2783. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2784. }
  2785. }
  2786. if (listitem == 8)
  2787. {
  2788. if(GetVehicleModel(vehicleid) >=1)
  2789. {
  2790. AddVehicleComponent(vehicleid, 1078);
  2791. GivePlayerMoney(playerid,-800);
  2792. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2793. }
  2794. else
  2795. {
  2796. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2797. }
  2798. }
  2799. if (listitem == 9)
  2800. {
  2801. if(GetVehicleModel(vehicleid) >=1)
  2802. {
  2803. AddVehicleComponent(vehicleid, 1079);
  2804. GivePlayerMoney(playerid,-800);
  2805. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2806. }
  2807. else
  2808. {
  2809. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2810. }
  2811. }
  2812. if (listitem == 10)
  2813. {
  2814. if(GetVehicleModel(vehicleid) >=1)
  2815. {
  2816. AddVehicleComponent(vehicleid, 1080);
  2817. GivePlayerMoney(playerid,-800);
  2818. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2819. }
  2820. else
  2821. {
  2822. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2823. }
  2824. }
  2825. if (listitem == 11)
  2826. {
  2827. if(GetVehicleModel(vehicleid) >=1)
  2828. {
  2829. AddVehicleComponent(vehicleid, 1081);
  2830. GivePlayerMoney(playerid,-800);
  2831. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2832. }
  2833. else
  2834. {
  2835. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2836. }
  2837. }
  2838. if (listitem == 12)
  2839. {
  2840. if(GetVehicleModel(vehicleid) >=1)
  2841. {
  2842. AddVehicleComponent(vehicleid, 1082);
  2843. GivePlayerMoney(playerid,-800);
  2844. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2845. }
  2846. else
  2847. {
  2848. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2849. }
  2850. }
  2851. if (listitem == 13)
  2852. {
  2853. if(GetVehicleModel(vehicleid) >=1)
  2854. {
  2855. AddVehicleComponent(vehicleid, 1083);
  2856. GivePlayerMoney(playerid,-800);
  2857. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2858. }
  2859. else
  2860. {
  2861. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2862. }
  2863. }
  2864. if (listitem == 14)
  2865. {
  2866. if(GetVehicleModel(vehicleid) >=1)
  2867. {
  2868. AddVehicleComponent(vehicleid, 1084);
  2869. GivePlayerMoney(playerid,-800);
  2870. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2871. }
  2872. else
  2873. {
  2874. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2875. }
  2876. }
  2877. if (listitem == 15)
  2878. {
  2879. if(GetVehicleModel(vehicleid) >=1)
  2880. {
  2881. AddVehicleComponent(vehicleid, 1085);
  2882. GivePlayerMoney(playerid,-800);
  2883. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2884. }
  2885. else
  2886. {
  2887. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2888. }
  2889. }
  2890. }
  2891. }
  2892. //////////////////////////////////////////////////////////////////////////////////////
  2893. if(dialogid == 1247)
  2894. {
  2895. if(response)
  2896. {
  2897. if (listitem == 0)
  2898. {
  2899. if(GetVehicleModel(vehicleid) >=1)
  2900. {
  2901. AddVehicleComponent(vehicleid, 1086);
  2902. GivePlayerMoney(playerid,-800);
  2903. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2904. }
  2905. else
  2906. {
  2907. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2908. }
  2909. }
  2910. if (listitem == 1)
  2911. {
  2912. if(GetVehicleModel(vehicleid) >=1)
  2913. {
  2914. AddVehicleComponent(vehicleid, 1087);
  2915. GivePlayerMoney(playerid,-800);
  2916. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2917. }
  2918. else
  2919. {
  2920. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2921. }
  2922. }
  2923. if (listitem == 2)
  2924. {
  2925. if(GetVehicleModel(vehicleid) >=1)
  2926. {
  2927. AddVehicleComponent(vehicleid, 1009);
  2928. GivePlayerMoney(playerid,-800);
  2929. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2930. }
  2931. else
  2932. {
  2933. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2934. }
  2935. }
  2936. if (listitem == 3)
  2937. {
  2938. if(GetVehicleModel(vehicleid) >=1)
  2939. {
  2940. AddVehicleComponent(vehicleid, 1008);
  2941. GivePlayerMoney(playerid,-800);
  2942. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2943. }
  2944. else
  2945. {
  2946. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2947. }
  2948. }
  2949. if (listitem == 4)
  2950. {
  2951. if(GetVehicleModel(vehicleid) >=1)
  2952. {
  2953. AddVehicleComponent(vehicleid, 1010);
  2954. GivePlayerMoney(playerid,-800);
  2955. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2956. }
  2957. else
  2958. {
  2959. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2960. }
  2961. }
  2962. }
  2963. }
  2964. //////////////////////////////////////////////////////////////////////////////////////
  2965. if(dialogid == 1250)
  2966. {
  2967. if(response)
  2968. {
  2969. if (listitem == 0)
  2970. {
  2971. if(GetVehicleModel(vehicleid) >=1)
  2972. {
  2973. ChangeVehiclePaintjob(vehicleid,1);
  2974. GivePlayerMoney(playerid,-1000);
  2975. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2976. }
  2977. else
  2978. {
  2979. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2980. }
  2981. }
  2982. if (listitem == 1)
  2983. {
  2984. if(GetVehicleModel(vehicleid) >=1)
  2985. {
  2986. ChangeVehiclePaintjob(vehicleid,2);
  2987. GivePlayerMoney(playerid,-1000);
  2988. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  2989. }
  2990. else
  2991. {
  2992. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  2993. }
  2994. }
  2995. if (listitem == 2)
  2996. {
  2997. if(GetVehicleModel(vehicleid) >=1)
  2998. {
  2999. ChangeVehiclePaintjob(vehicleid,3);
  3000. GivePlayerMoney(playerid,-1000);
  3001. SendClientMessage(playerid,COLOR_DARKORANGE,"Vehicle Component added");
  3002. }
  3003. else
  3004. {
  3005. SendClientMessage(playerid,COLOR_DARKORANGE,"This is not an Vehicle");
  3006. }
  3007. }
  3008.  
  3009. }
  3010. }
  3011. return 0;
  3012. }
  3013. stock IsTuner(modelid)
  3014. {
  3015. switch(modelid)
  3016. {
  3017. case 562, 565, 559,
  3018. 560, 558, 561: return true;
  3019. }
  3020. return false;
  3021. }
  3022. //==============================================================================
  3023. //==============================================================================
  3024. // Carmenu
  3025. //==============================================================================
  3026. if (dialogid == 10)
  3027. {
  3028. if (response)
  3029. {
  3030. if (listitem == 0)
  3031. {
  3032. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu!","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3033. }
  3034. }
  3035. }
  3036. if(dialogid == 100)
  3037. {
  3038. if(response)
  3039. {
  3040. if(listitem == 0) // Bikes
  3041. {
  3042. ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "Bikes", "BF-400\nBike\nBMX\nHPV1000\nFaggio\nFCR-900\nFreeway\nMountain Bike\nNRG-500\nPCJ-600\nPizzaboy\nSanchez\nWayfarer\nQuad\nBack", "Select","Cancel");
  3043. }
  3044. if(listitem == 1) // Cars [A-E]
  3045. {
  3046. new cMenuString[408];
  3047. cMenuString = " ";
  3048. strcat(cMenuString, "Admiral\nAlpha\nAmbulance\nBaggage\nBandito\nBanshee\nBarracks\nBenson\nBerkley's RC Van\nBF Injection\nBlade\nBlista Compact\nBloodring Banger\nBobcat\nBoxville 1\nBoxville 2\nBravura\nBroadway\nBuccaneer\nBuffalo\nBullet\nBurrito\nBus\nCabbie\n");
  3049. strcat(cMenuString, "Caddy\nCadrona\nCamper\nCement Truck\nCheetah\nClover\nClub\nCoach\nCombine Harvester\nComet\nDFT-30\nDozer\nDumper\nDune(ride)\nElegant\nElegy\nEmperor\nEsperanto\nEuros\nBack");
  3050. ShowPlayerDialog(playerid, 102, DIALOG_STYLE_LIST, "Cars 1 [A-E]", cMenuString, "Select","Cancel");
  3051. }
  3052. if(listitem == 2) // Cars 2 [F-P]
  3053. {
  3054. new cMenuString[408];
  3055. cMenuString = " ";
  3056. strcat(cMenuString, "FBI Rancher\nFBI Truck\nFeltzer\nFiretruck 1\nFiretruck 2\nFlash\nFlatbed\nForklift\nFortune\nGlendale 1\nGlendale 2\nGreenwood\nHermes\nHotdog\nHotknife\nHotring Racer 1\nHotring Racer 2\nHotring Racer 3\nHuntley\nHustler\nInfernus\nIntruder\nJester\nJourney\nKart\nLandstalker\nLinerunner\nMajestic\nManana\nMerit\nMesa\nMonster\nMonster A\nMonster B\nMoonbeam\nMower\nMr Whoopee\nMule\nNebula\n");
  3057. strcat(cMenuString, "Newsvan\nOceanic\nPacker\nBack");
  3058. ShowPlayerDialog(playerid, 103, DIALOG_STYLE_LIST, "Cars 2 [F-P]", cMenuString, "Select","Cancel");
  3059. }
  3060. if(listitem == 3) // Cars 3 [P-S]
  3061. {
  3062. ShowPlayerDialog(playerid, 104, DIALOG_STYLE_LIST, "Cars 3 [P-S]", "Patriot\nPerenniel\nPetrol Tanker\nPhoenix\nPicador\nPolice Car (LSPD)\nPolice Car (SFPD)\nPolice Car (LVPD)\nPolice Ranger\nPolice Truck (Enforcer)\nPolice Truck (SWAT)\nPony\nPremier\nPrevion\nPrimo\nRancher\nRegina\nRemington\nRoadtrain\nRomero\nRumpo\nSabre\nSadler 1\nSadler 2\nSandking\nSavanna\nSecuricar\nSentinel\nSlamvan\nSolair\nStafford\nStallion\nStratum\nStretch\nSultan\nSunrise\nBack","Select","Cancel");
  3063. }
  3064. if(listitem == 4) // Cars 4 [S-Z]
  3065. {
  3066. ShowPlayerDialog(playerid, 105, DIALOG_STYLE_LIST, "Cars 4 [S-Z]", "Super GT\nSweeper\nTahoma\nTampa\nTaxi\nTornado\nTowtruck\nTractor\nTrashmaster\nTug\nTurismo\nUranus\nUtility Van\nVincent\nVirgo\nVoodoo\nWalton\nWashington\nWilliard\nWindsor\nYankee\nYosemite\nZR-350\nBack","Select","Cancel");
  3067. }
  3068. if(listitem == 5) // Helicopters
  3069. {
  3070. ShowPlayerDialog(playerid, 106, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nLeviathan\nMaverick\nPolice Maverick\nNews Chopper\nRaindance\nSparrow\nBack","Select","Cancel");
  3071. }
  3072. if(listitem == 6) // Planes
  3073. {
  3074. ShowPlayerDialog(playerid, 107, DIALOG_STYLE_LIST, "Planes", "Andromada\nAT-400\nBeagle\nCropduster\nDodo\nHydra\nNevada\nRustler\nShamal\nSkimmer\nStuntplane\nBack","Select","Cancel");
  3075. }
  3076. if(listitem == 7) // Boats
  3077. {
  3078. ShowPlayerDialog(playerid, 108, DIALOG_STYLE_LIST, "Boats", "Coastguard\nDinghy\nJetmax\nLaunch\nMarquis\nReefer\nSpeeder\nSquallo\nTropic\nBack","Select","Cancel");
  3079. }
  3080. if(listitem == 8) // Trains
  3081. {
  3082. ShowPlayerDialog(playerid, 109, DIALOG_STYLE_LIST, "Trains", "Brown Streak\nFreight Box Trailer\nFreight Flat Trailer\nFreight\nStreak Trailer\nTram\nBack","Select","Cancel");
  3083. }
  3084. if(listitem == 9) // Trailers
  3085. {
  3086. ShowPlayerDialog(playerid, 110, DIALOG_STYLE_LIST, "Trailers", "Article Trailer 1\nArticle Trailer 2\nArticle Trailer 3\nBaggage Trailer (A)\nBaggage Trailer (B)\nFarm Trailer\nPetrol Trailer\nTug Stairs Trailer\nUtility Trailer\nBack","Select","Cancel");
  3087. }
  3088. if(listitem == 10) // RC Vehicles + Vortex
  3089. {
  3090. ShowPlayerDialog(playerid, 111, DIALOG_STYLE_LIST, "RC Vehicles + Vortex", "RC Bandit\nRC Cam\nRC Tiger\nRC Baron\nRC Goblin\nRC Raider\nVortex\nBack","Select","Cancel");
  3091. }
  3092. }
  3093. return 1;
  3094. }
  3095. //==============================================================================
  3096. // Bikes
  3097. //==============================================================================
  3098. if(dialogid == 101) // Bikes
  3099. {
  3100. if(response)
  3101. {
  3102. if(listitem == 0) // BF-400
  3103. {
  3104. CreateVehicleEx(playerid,581, X,Y,Z+1, Angle, random(126), random(126), -1);
  3105. }
  3106. if(listitem == 1) // Bike
  3107. {
  3108. CreateVehicleEx(playerid,509, X,Y,Z+1, Angle, random(126), random(126), -1);
  3109. }
  3110. if(listitem == 2) // BMX
  3111. {
  3112. CreateVehicleEx(playerid,481, X,Y,Z+1, Angle, random(126), random(126), -1);
  3113. }
  3114. if(listitem == 3) // HPV1000
  3115. {
  3116. CreateVehicleEx(playerid,523, X,Y,Z+1, Angle, random(126), random(126), -1);
  3117. }
  3118. if(listitem == 4) // Faggio
  3119. {
  3120. CreateVehicleEx(playerid,462, X,Y,Z+1, Angle, random(126), random(126), -1);
  3121. }
  3122. if(listitem == 5) // FCR-900
  3123. {
  3124. CreateVehicleEx(playerid,521, X,Y,Z+1, Angle, random(126), random(126), -1);
  3125. }
  3126. if(listitem == 6) // Freeway
  3127. {
  3128. CreateVehicleEx(playerid,463, X,Y,Z+1, Angle, random(126), random(126), -1);
  3129. }
  3130. if(listitem == 7) // Mountain Bike
  3131. {
  3132. CreateVehicleEx(playerid,510, X,Y,Z+1, Angle, random(126), random(126), -1);
  3133. }
  3134. if(listitem == 8) // NRG-500
  3135. {
  3136. CreateVehicleEx(playerid,522, X,Y,Z+1, Angle, random(126), random(126), -1);
  3137. }
  3138. if(listitem == 9) // PCJ-600
  3139. {
  3140. CreateVehicleEx(playerid,461, X,Y,Z+1, Angle, random(126), random(126), -1);
  3141. }
  3142. if(listitem == 10) // Pizzaboy
  3143. {
  3144. CreateVehicleEx(playerid,448, X,Y,Z+1, Angle, random(126), random(126), -1);
  3145. }
  3146. if(listitem == 11) // Sanchez
  3147. {
  3148. CreateVehicleEx(playerid,468, X,Y,Z+1, Angle, random(126), random(126), -1);
  3149. }
  3150. if(listitem == 12) // Wayfarer
  3151. {
  3152. CreateVehicleEx(playerid,586, X,Y,Z+1, Angle, random(126), random(126), -1);
  3153. }
  3154. if(listitem == 13) // Quad
  3155. {
  3156. CreateVehicleEx(playerid,471, X,Y,Z+1, Angle, random(126), random(126), -1);
  3157. }
  3158. if(listitem == 14) // Back
  3159. {
  3160. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3161. }
  3162.  
  3163. }
  3164. return 1;
  3165. }
  3166. //==============================================================================
  3167. // Cars 1
  3168. //==============================================================================
  3169. if(dialogid == 102) // Cars 1
  3170. {
  3171. if(response)
  3172. {
  3173. if(listitem == 0) // Admiral
  3174. {
  3175. CreateVehicleEx(playerid,445, X,Y,Z+1, Angle, random(126), random(126), -1);
  3176. }
  3177. if(listitem == 1) // Alpha
  3178. {
  3179. CreateVehicleEx(playerid,602, X,Y,Z+1, Angle, random(126), random(126), -1);
  3180. }
  3181. if(listitem == 2) // Ambulance
  3182. {
  3183. CreateVehicleEx(playerid,416, X,Y,Z+1, Angle, random(126), random(126), -1);
  3184. }
  3185. if(listitem == 3) // Baggage
  3186. {
  3187. CreateVehicleEx(playerid,485, X,Y,Z+1, Angle, random(126), random(126), -1);
  3188. }
  3189. if(listitem == 4) // Bandito
  3190. {
  3191. CreateVehicleEx(playerid,568, X,Y,Z+1, Angle, random(126), random(126), -1);
  3192. }
  3193. if(listitem == 5) // Banshee
  3194. {
  3195. CreateVehicleEx(playerid,429, X,Y,Z+1, Angle, random(126), random(126), -1);
  3196. }
  3197. if(listitem == 6) // Barracks
  3198. {
  3199. CreateVehicleEx(playerid,433, X,Y,Z+1, Angle, random(126), random(126), -1);
  3200. }
  3201. if(listitem == 7) // Benson
  3202. {
  3203. CreateVehicleEx(playerid,499, X,Y,Z+1, Angle, random(126), random(126), -1);
  3204. }
  3205. if(listitem == 8) // Berkley's RC Van
  3206. {
  3207. CreateVehicleEx(playerid,459, X,Y,Z+1, Angle, random(126), random(126), -1);
  3208. }
  3209. if(listitem == 9) //BF Injection
  3210. {
  3211. CreateVehicleEx(playerid,424, X,Y,Z+1, Angle, random(126), random(126), -1);
  3212. }
  3213. if(listitem == 10) // Blade
  3214. {
  3215. CreateVehicleEx(playerid,536, X,Y,Z+1, Angle, random(126), random(126), -1);
  3216. }
  3217. if(listitem == 11) // Blista Compact
  3218. {
  3219. CreateVehicleEx(playerid,496, X,Y,Z+1, Angle, random(126), random(126), -1);
  3220. }
  3221. if(listitem == 12) // Bloodring Banger
  3222. {
  3223. CreateVehicleEx(playerid,504, X,Y,Z+1, Angle, random(126), random(126), -1);
  3224. }
  3225. if(listitem == 13) // Bobcat
  3226. {
  3227. CreateVehicleEx(playerid,422, X,Y,Z+1, Angle, random(126), random(126), -1);
  3228. }
  3229. if(listitem == 14) // Boxville 1
  3230. {
  3231. CreateVehicleEx(playerid,609, X,Y,Z+1, Angle, random(126), random(126), -1);
  3232. }
  3233. if(listitem == 15) // Boxville 2
  3234. {
  3235. CreateVehicleEx(playerid,498, X,Y,Z+1, Angle, random(126), random(126), -1);
  3236. }
  3237. if(listitem == 16) // Bravura
  3238. {
  3239. CreateVehicleEx(playerid,401, X,Y,Z+1, Angle, random(126), random(126), -1);
  3240. }
  3241. if(listitem == 17) // Broadway
  3242. {
  3243. CreateVehicleEx(playerid,575, X,Y,Z+1, Angle, random(126), random(126), -1);
  3244. }
  3245. if(listitem == 18) // Buccaneer
  3246. {
  3247. CreateVehicleEx(playerid,518, X,Y,Z+1, Angle, random(126), random(126), -1);
  3248. }
  3249. if(listitem == 19) // Buffalo
  3250. {
  3251. CreateVehicleEx(playerid,402, X,Y,Z+1, Angle, random(126), random(126), -1);
  3252. }
  3253. if(listitem == 20) // Bullet
  3254. {
  3255. CreateVehicleEx(playerid,541, X,Y,Z+1, Angle, random(126), random(126), -1);
  3256. }
  3257. if(listitem == 21) // Burrito
  3258. {
  3259. CreateVehicleEx(playerid,482, X,Y,Z+1, Angle, random(126), random(126), -1);
  3260. }
  3261. if(listitem == 22) // Bus
  3262. {
  3263. CreateVehicleEx(playerid,431, X,Y,Z+1, Angle, random(126), random(126), -1);
  3264. }
  3265. if(listitem == 23) // Cabbie
  3266. {
  3267. CreateVehicleEx(playerid,438, X,Y,Z+1, Angle, random(126), random(126), -1);
  3268. }
  3269. if(listitem == 24) // Caddy
  3270. {
  3271. CreateVehicleEx(playerid,457, X,Y,Z+1, Angle, random(126), random(126), -1);
  3272. }
  3273. if(listitem == 25) // Cadrona
  3274. {
  3275. CreateVehicleEx(playerid,527, X,Y,Z+1, Angle, random(126), random(126), -1);
  3276. }
  3277. if(listitem == 26) // Camper
  3278. {
  3279. CreateVehicleEx(playerid,483, X,Y,Z+1, Angle, random(126), random(126), -1);
  3280. }
  3281. if(listitem == 27) // Cement Truck
  3282. {
  3283. CreateVehicleEx(playerid,524, X,Y,Z+1, Angle, random(126), random(126), -1);
  3284. }
  3285. if(listitem == 28) // Cheetah
  3286. {
  3287. CreateVehicleEx(playerid,415, X,Y,Z+1, Angle, random(126), random(126), -1);
  3288. }
  3289. if(listitem == 29) // Clover
  3290. {
  3291. CreateVehicleEx(playerid,542, X,Y,Z+1, Angle, random(126), random(126), -1);
  3292. }
  3293. if(listitem == 30) // Club
  3294. {
  3295. CreateVehicleEx(playerid,589, X,Y,Z+1, Angle, random(126), random(126), -1);
  3296. }
  3297. if(listitem == 31) // Coach
  3298. {
  3299. CreateVehicleEx(playerid,437, X,Y,Z+1, Angle, random(126), random(126), -1);
  3300. }
  3301. if(listitem == 32) // Combine Harvester
  3302. {
  3303. CreateVehicleEx(playerid,532, X,Y,Z+1, Angle, random(126), random(126), -1);
  3304. }
  3305. if(listitem == 33) // Comet
  3306. {
  3307. CreateVehicleEx(playerid,480, X,Y,Z+1, Angle, random(126), random(126), -1);
  3308. }
  3309. if(listitem == 34) // DFT-30
  3310. {
  3311. CreateVehicleEx(playerid,578, X,Y,Z+1, Angle, random(126), random(126), -1);
  3312. }
  3313. if(listitem == 35) // Dozer
  3314. {
  3315. CreateVehicleEx(playerid,486, X,Y,Z+1, Angle, random(126), random(126), -1);
  3316. }
  3317. if(listitem == 36) // Dumper
  3318. {
  3319. CreateVehicleEx(playerid, 406, X,Y,Z+1, Angle, random(126), random(126), -1);
  3320. }
  3321. if(listitem == 37) // Dune(ride)
  3322. {
  3323. CreateVehicleEx(playerid, 573, X,Y,Z+1, Angle, random(126), random(126), -1);
  3324. }
  3325. if(listitem == 38) // Elegant
  3326. {
  3327. CreateVehicleEx(playerid,507, X,Y,Z+1, Angle, random(126), random(126), -1);
  3328. }
  3329. if(listitem == 39) // Elegy
  3330. {
  3331. CreateVehicleEx(playerid,562, X,Y,Z+1, Angle, random(126), random(126), -1);
  3332. }
  3333. if(listitem == 40) // Emperor
  3334. {
  3335. CreateVehicleEx(playerid,585, X,Y,Z+1, Angle, random(126), random(126), -1);
  3336. }
  3337. if(listitem == 41) // Esperanto
  3338. {
  3339. CreateVehicleEx(playerid,419, X,Y,Z+1, Angle, random(126), random(126), -1);
  3340. }
  3341. if(listitem == 42) // Euros
  3342. {
  3343. CreateVehicleEx(playerid,587, X,Y,Z+1, Angle, random(126), random(126), -1);
  3344. }
  3345. if(listitem == 43) // Back
  3346. {
  3347. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3348. }
  3349. }
  3350. return 1;
  3351. }
  3352.  
  3353. //==============================================================================
  3354. // Cars 2
  3355. //==============================================================================
  3356. if(dialogid == 103) // Cars 2
  3357. {
  3358. if(response)
  3359. {
  3360. if(listitem == 0) // FBI Rancher
  3361. {
  3362. CreateVehicleEx(playerid,490, X,Y,Z+1, Angle, random(126), random(126), -1);
  3363. }
  3364. if(listitem == 1) // FBI Truck
  3365. {
  3366. CreateVehicleEx(playerid,528, X,Y,Z+1, Angle, random(126), random(126), -1);
  3367. }
  3368. if(listitem == 2) // Feltzer
  3369. {
  3370. CreateVehicleEx(playerid,533, X,Y,Z+1, Angle, random(126), random(126), -1);
  3371. }
  3372. if(listitem == 3) // Firetruck 1
  3373. {
  3374. CreateVehicleEx(playerid,544, X,Y,Z+1, Angle, random(126), random(126), -1);
  3375. }
  3376. if(listitem == 4) // Firetruck 2
  3377. {
  3378. CreateVehicleEx(playerid,407, X,Y,Z+1, Angle, random(126), random(126), -1);
  3379. }
  3380. if(listitem == 5) // Flash
  3381. {
  3382. CreateVehicleEx(playerid,565, X,Y,Z+1, Angle, random(126), random(126), -1);
  3383. }
  3384. if(listitem == 6) // Flatbed
  3385. {
  3386. CreateVehicleEx(playerid,455, X,Y,Z+1, Angle, random(126), random(126), -1);
  3387. }
  3388. if(listitem == 7) // Forklift
  3389. {
  3390. CreateVehicleEx(playerid,530, X,Y,Z+1, Angle, random(126), random(126), -1);
  3391. }
  3392. if(listitem == 8) // Fortune
  3393. {
  3394. CreateVehicleEx(playerid,526, X,Y,Z+1, Angle, random(126), random(126), -1);
  3395. }
  3396. if(listitem == 9) // Glendale 1
  3397. {
  3398. CreateVehicleEx(playerid,466, X,Y,Z+1, Angle, random(126), random(126), -1);
  3399. }
  3400. if(listitem == 10) // Glendale 2
  3401. {
  3402. CreateVehicleEx(playerid,604, X,Y,Z+1, Angle, random(126), random(126), -1);
  3403. }
  3404. if(listitem == 11) // Greenwood
  3405. {
  3406. CreateVehicleEx(playerid,492, X,Y,Z+1, Angle, random(126), random(126), -1);
  3407. }
  3408. if(listitem == 12) // Hermes
  3409. {
  3410. CreateVehicleEx(playerid,474, X,Y,Z+1, Angle, random(126), random(126), -1);
  3411. }
  3412. if(listitem == 13) // Hotdog
  3413. {
  3414. CreateVehicleEx(playerid,588, X,Y,Z+1, Angle, random(126), random(126), -1);
  3415. }
  3416. if(listitem == 14) // Hotknife
  3417. {
  3418. CreateVehicleEx(playerid,434, X,Y,Z+1, Angle, random(126), random(126), -1);
  3419. }
  3420. if(listitem == 15) // Hotring Racer 1
  3421. {
  3422. CreateVehicleEx(playerid,502, X,Y,Z+1, Angle, random(126), random(126), -1);
  3423. }
  3424. if(listitem == 16) // Hotring Racer 2
  3425. {
  3426. CreateVehicleEx(playerid,503, X,Y,Z+1, Angle, random(126), random(126), -1);
  3427. }
  3428. if(listitem == 17) // Hotring Racer 3
  3429. {
  3430. CreateVehicleEx(playerid,494, X,Y,Z+1, Angle, random(126), random(126), -1);
  3431. }
  3432. if(listitem == 18) // Huntley
  3433. {
  3434. CreateVehicleEx(playerid,579, X,Y,Z+1, Angle, random(126), random(126), -1);
  3435. }
  3436. if(listitem == 19) // Hustler
  3437. {
  3438. CreateVehicleEx(playerid,545, X,Y,Z+1, Angle, random(126), random(126), -1);
  3439. }
  3440. if(listitem == 20) // Infernus
  3441. {
  3442. CreateVehicleEx(playerid,411, X,Y,Z+1, Angle, random(126), random(126), -1);
  3443. }
  3444. if(listitem == 21) // Intruder
  3445. {
  3446. CreateVehicleEx(playerid,546, X,Y,Z+1, Angle, random(126), random(126), -1);
  3447. }
  3448. if(listitem == 22) // Jester
  3449. {
  3450. CreateVehicleEx(playerid,559, X,Y,Z+1, Angle, random(126), random(126), -1);
  3451. }
  3452. if(listitem == 23) // Journey
  3453. {
  3454. CreateVehicleEx(playerid,508, X,Y,Z+1, Angle, random(126), random(126), -1);
  3455. }
  3456. if(listitem == 24) // Kart
  3457. {
  3458. CreateVehicleEx(playerid,571, X,Y,Z+1, Angle, random(126), random(126), -1);
  3459. }
  3460. if(listitem == 25) // Landstalker
  3461. {
  3462. CreateVehicleEx(playerid,400, X,Y,Z+1, Angle, random(126), random(126), -1);
  3463. }
  3464. if(listitem == 26) // Linerunner
  3465. {
  3466. CreateVehicleEx(playerid,403, X,Y,Z+1, Angle, random(126), random(126), -1);
  3467. }
  3468. if(listitem == 27) // Majestic
  3469. {
  3470. CreateVehicleEx(playerid,517, X,Y,Z+1, Angle, random(126), random(126), -1);
  3471. }
  3472. if(listitem == 28) // Manana
  3473. {
  3474. CreateVehicleEx(playerid,410, X,Y,Z+1, Angle, random(126), random(126), -1);
  3475. }
  3476. if(listitem == 29) // Merit
  3477. {
  3478. CreateVehicleEx(playerid,551, X,Y,Z+1, Angle, random(126), random(126), -1);
  3479. }
  3480. if(listitem == 30) // Mesa
  3481. {
  3482. CreateVehicleEx(playerid,500, X,Y,Z+1, Angle, random(126), random(126), -1);
  3483. }
  3484. if(listitem == 31) // Monster
  3485. {
  3486. CreateVehicleEx(playerid, 444, X,Y,Z+1, Angle, random(126), random(126), -1);
  3487. }
  3488. if(listitem == 32) // Monster A
  3489. {
  3490. CreateVehicleEx(playerid, 556, X,Y,Z+1, Angle, random(126), random(126), -1);
  3491. }
  3492. if(listitem == 33) // Monster B
  3493. {
  3494. CreateVehicleEx(playerid, 557, X,Y,Z+1, Angle, random(126), random(126), -1);
  3495. }
  3496. if(listitem == 34) // Moonbeam
  3497. {
  3498. CreateVehicleEx(playerid,418, X,Y,Z+1, Angle, random(126), random(126), -1);
  3499. }
  3500. if(listitem == 35) // Mower
  3501. {
  3502. CreateVehicleEx(playerid,572, X,Y,Z+1, Angle, random(126), random(126), -1);
  3503. }
  3504. if(listitem == 36) // Mr Whoopee
  3505. {
  3506. CreateVehicleEx(playerid, 423, X,Y,Z+1, Angle, random(126), random(126), -1);
  3507. }
  3508. if(listitem == 37) // Mule
  3509. {
  3510. CreateVehicleEx(playerid, 414, X,Y,Z+1, Angle, random(126), random(126), -1);
  3511. }
  3512. if(listitem == 38) // Nebula
  3513. {
  3514. CreateVehicleEx(playerid,516, X,Y,Z+1, Angle, random(126), random(126), -1);
  3515. }
  3516. if(listitem == 39) // Newsvan
  3517. {
  3518. CreateVehicleEx(playerid,582, X,Y,Z+1, Angle, random(126), random(126), -1);
  3519. }
  3520. if(listitem == 40) // Oceanic
  3521. {
  3522. CreateVehicleEx(playerid,467, X,Y,Z+1, Angle, random(126), random(126), -1);
  3523. }
  3524. if(listitem == 41) // Packer
  3525. {
  3526. CreateVehicleEx(playerid,443, X,Y,Z+1, Angle, random(126), random(126), -1);
  3527. }
  3528. if(listitem == 42) // Back
  3529. {
  3530. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3531. }
  3532. }
  3533. return 1;
  3534. }
  3535.  
  3536. //==============================================================================
  3537. // Cars 3
  3538. //==============================================================================
  3539. if(dialogid == 104) // Cars 3
  3540. {
  3541. if(response)
  3542. {
  3543. if(listitem == 0) // Patriot
  3544. {
  3545. CreateVehicleEx(playerid,470, X,Y,Z+1, Angle, random(126), random(126), -1);
  3546. }
  3547. if(listitem == 1) // Perenniel
  3548. {
  3549. CreateVehicleEx(playerid,404, X,Y,Z+1, Angle, random(126), random(126), -1);
  3550. }
  3551. if(listitem == 2) // Petrol Tanker
  3552. {
  3553. CreateVehicleEx(playerid,514, X,Y,Z+1, Angle, random(126), random(126), -1);
  3554. }
  3555. if(listitem == 3) // Phoenix
  3556. {
  3557. CreateVehicleEx(playerid,603, X,Y,Z+1, Angle, random(126), random(126), -1);
  3558. }
  3559. if(listitem == 4) // Picador
  3560. {
  3561. CreateVehicleEx(playerid,600, X,Y,Z+1, Angle, random(126), random(126), -1);
  3562. }
  3563. if(listitem == 5) // Police Car LSPD
  3564. {
  3565. CreateVehicleEx(playerid,596, X,Y,Z+1, Angle, random(126), random(126), -1);
  3566. }
  3567. if(listitem == 6) // Police Car SFPD
  3568. {
  3569. CreateVehicleEx(playerid,597, X,Y,Z+1, Angle, random(126), random(126), -1);
  3570. }
  3571. if(listitem == 7) // Police Car LVPD
  3572. {
  3573. CreateVehicleEx(playerid,598, X,Y,Z+1, Angle, random(126), random(126), -1);
  3574. }
  3575. if(listitem == 8) // Police Ranger
  3576. {
  3577. CreateVehicleEx(playerid,599, X,Y,Z+1, Angle, random(126), random(126), -1);
  3578. }
  3579. if(listitem == 9) // Police Truck (Enforcer)
  3580. {
  3581. CreateVehicleEx(playerid,427, X,Y,Z+1, Angle, random(126), random(126), -1);
  3582. }
  3583. if(listitem == 10) // Police Truck (SWAT)
  3584. {
  3585. CreateVehicleEx(playerid,601, X,Y,Z+1, Angle, random(126), random(126), -1);
  3586. }
  3587. if(listitem == 11) // Pony
  3588. {
  3589. CreateVehicleEx(playerid,413, X,Y,Z+1, Angle, random(126), random(126), -1);
  3590. }
  3591. if(listitem == 12) // Premier
  3592. {
  3593. CreateVehicleEx(playerid,426, X,Y,Z+1, Angle, random(126), random(126), -1);
  3594. }
  3595. if(listitem == 13) // Previon
  3596. {
  3597. CreateVehicleEx(playerid,436, X,Y,Z+1, Angle, random(126), random(126), -1);
  3598. }
  3599. if(listitem == 14) // Primo
  3600. {
  3601. CreateVehicleEx(playerid,547, X,Y,Z+1, Angle, random(126), random(126), -1);
  3602. }
  3603. if(listitem == 15) // Rancher
  3604. {
  3605. CreateVehicleEx(playerid,489, X,Y,Z+1, Angle, random(126), random(126), -1);
  3606. }
  3607. if(listitem == 16) // Regina
  3608. {
  3609. CreateVehicleEx(playerid,479, X,Y,Z+1, Angle, random(126), random(126), -1);
  3610. }
  3611. if(listitem == 17) // Remington
  3612. {
  3613. CreateVehicleEx(playerid,534, X,Y,Z+1, Angle, random(126), random(126), -1);
  3614. }
  3615. if(listitem == 18) // Roadtrain
  3616. {
  3617. CreateVehicleEx(playerid,515, X,Y,Z+1, Angle, random(126), random(126), -1);
  3618. }
  3619. if(listitem == 19) // Romero
  3620. {
  3621. CreateVehicleEx(playerid,442, X,Y,Z+1, Angle, random(126), random(126), -1);
  3622. }
  3623. if(listitem == 20) // Rumpo
  3624. {
  3625. CreateVehicleEx(playerid,440, X,Y,Z+1, Angle, random(126), random(126), -1);
  3626. }
  3627. if(listitem == 21) // Sabre
  3628. {
  3629. CreateVehicleEx(playerid, 475, X,Y,Z+1, Angle, random(126), random(126), -1);
  3630. }
  3631. if(listitem == 22) // Sadler 1
  3632. {
  3633. CreateVehicleEx(playerid,543, X,Y,Z+1, Angle, random(126), random(126), -1);
  3634. }
  3635. if(listitem == 23) // Sadler 2
  3636. {
  3637. CreateVehicleEx(playerid,605, X,Y,Z+1, Angle, random(126), random(126), -1);
  3638. }
  3639. if(listitem == 24) // Sandking
  3640. {
  3641. CreateVehicleEx(playerid,495, X,Y,Z+1, Angle, random(126), random(126), -1);
  3642. }
  3643. if(listitem == 25) // Savanna
  3644. {
  3645. CreateVehicleEx(playerid,567, X,Y,Z+1, Angle, random(126), random(126), -1);
  3646. }
  3647. if(listitem == 26) // Securicar
  3648. {
  3649. CreateVehicleEx(playerid,428, X,Y,Z+1, Angle, random(126), random(126), -1);
  3650. }
  3651. if(listitem == 27) // Sentinel
  3652. {
  3653. CreateVehicleEx(playerid,405, X,Y,Z+1, Angle, random(126), random(126), -1);
  3654. }
  3655. if(listitem == 28) // Slamvan
  3656. {
  3657. CreateVehicleEx(playerid,535, X,Y,Z+1, Angle, random(126), random(126), -1);
  3658. }
  3659. if(listitem == 29) // Solair
  3660. {
  3661. CreateVehicleEx(playerid,458, X,Y,Z+1, Angle, random(126), random(126), -1);
  3662. }
  3663. if(listitem == 30) // Stafford
  3664. {
  3665. CreateVehicleEx(playerid,580, X,Y,Z+1, Angle, random(126), random(126), -1);
  3666. }
  3667. if(listitem == 31) // Stallion
  3668. {
  3669. CreateVehicleEx(playerid,439, X,Y,Z+1, Angle, random(126), random(126), -1);
  3670. }
  3671. if(listitem == 32) // Stratum
  3672. {
  3673. CreateVehicleEx(playerid,561, X,Y,Z+1, Angle, random(126), random(126), -1);
  3674. }
  3675. if(listitem == 33) // Stretch
  3676. {
  3677. CreateVehicleEx(playerid,409, X,Y,Z+1, Angle, random(126), random(126), -1);
  3678. }
  3679. if(listitem == 34) // Sultan
  3680. {
  3681. CreateVehicleEx(playerid,560, X,Y,Z+1, Angle, random(126), random(126), -1);
  3682. }
  3683. if(listitem == 35) // Sunrise
  3684. {
  3685. CreateVehicleEx(playerid,550, X,Y,Z+1, Angle, random(126), random(126), -1);
  3686. }
  3687. if(listitem == 36) // Back
  3688. {
  3689. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3690. }
  3691. }
  3692. return 1;
  3693. }
  3694.  
  3695. //==============================================================================
  3696. // Cars 4
  3697. //==============================================================================
  3698. if(dialogid == 105) // Cars 4
  3699. {
  3700. if(response)
  3701. {
  3702. if(listitem == 0) // Super GT
  3703. {
  3704. CreateVehicleEx(playerid,506, X,Y,Z+1, Angle, random(126), random(126), -1);
  3705. }
  3706. if(listitem == 1) // Sweeper
  3707. {
  3708. CreateVehicleEx(playerid,574, X,Y,Z+1, Angle, random(126), random(126), -1);
  3709. }
  3710. if(listitem == 2) // Tahoma
  3711. {
  3712. CreateVehicleEx(playerid,566, X,Y,Z+1, Angle, random(126), random(126), -1);
  3713. }
  3714. if(listitem == 3) // Tampa
  3715. {
  3716. CreateVehicleEx(playerid,549, X,Y,Z+1, Angle, random(126), random(126), -1);
  3717. }
  3718. if(listitem == 4) // Taxi
  3719. {
  3720. CreateVehicleEx(playerid,420, X,Y,Z+1, Angle, random(126), random(126), -1);
  3721. }
  3722. if(listitem == 5) // Tornado
  3723. {
  3724. CreateVehicleEx(playerid,576, X,Y,Z+1, Angle, random(126), random(126), -1);
  3725. }
  3726. if(listitem == 6) // Towtruck
  3727. {
  3728. CreateVehicleEx(playerid,525, X,Y,Z+1, Angle, random(126), random(126), -1);
  3729. }
  3730. if(listitem == 7) // Tractor
  3731. {
  3732. CreateVehicleEx(playerid,531, X,Y,Z+1, Angle, random(126), random(126), -1);
  3733. }
  3734. if(listitem == 8) // Trashmaster
  3735. {
  3736. CreateVehicleEx(playerid,408, X,Y,Z+1, Angle, random(126), random(126), -1);
  3737. }
  3738. if(listitem == 9) // Tug
  3739. {
  3740. CreateVehicleEx(playerid,583, X,Y,Z+1, Angle, random(126), random(126), -1);
  3741. }
  3742. if(listitem == 10) // Turismo
  3743. {
  3744. CreateVehicleEx(playerid,451, X,Y,Z+1, Angle, random(126), random(126), -1);
  3745. }
  3746. if(listitem == 11) // Uranus
  3747. {
  3748. CreateVehicleEx(playerid,558, X,Y,Z+1, Angle, random(126), random(126), -1);
  3749. }
  3750. if(listitem == 12) // Utility Van
  3751. {
  3752. CreateVehicleEx(playerid,552, X,Y,Z+1, Angle, random(126), random(126), -1);
  3753. }
  3754. if(listitem == 13) // Vincent
  3755. {
  3756. CreateVehicleEx(playerid,540, X,Y,Z+1, Angle, random(126), random(126), -1);
  3757. }
  3758. if(listitem == 14) // Virgo
  3759. {
  3760. CreateVehicleEx(playerid,491, X,Y,Z+1, Angle, random(126), random(126), -1);
  3761. }
  3762. if(listitem == 15) // Voodoo
  3763. {
  3764. CreateVehicleEx(playerid,412, X,Y,Z+1, Angle, random(126), random(126), -1);
  3765. }
  3766. if(listitem == 16) // Walton
  3767. {
  3768. CreateVehicleEx(playerid,478, X,Y,Z+1, Angle, random(126), random(126), -1);
  3769. }
  3770. if(listitem == 17) // Washington
  3771. {
  3772. CreateVehicleEx(playerid, 421, X,Y,Z+1, Angle, random(126), random(126), -1);
  3773. }
  3774. if(listitem == 18) // Williard
  3775. {
  3776. CreateVehicleEx(playerid,529, X,Y,Z+1, Angle, random(126), random(126), -1);
  3777. }
  3778. if(listitem == 19) // Windsor
  3779. {
  3780. CreateVehicleEx(playerid,555, X,Y,Z+1, Angle, random(126), random(126), -1);
  3781. }
  3782. if(listitem == 20) // Yankee
  3783. {
  3784. CreateVehicleEx(playerid,456, X,Y,Z+1, Angle, random(126), random(126), -1);
  3785. }
  3786. if(listitem == 21) // Yosemite
  3787. {
  3788. CreateVehicleEx(playerid,554, X,Y,Z+1, Angle, random(126), random(126), -1);
  3789. }
  3790. if(listitem == 22) // ZR-350
  3791. {
  3792. CreateVehicleEx(playerid,477, X,Y,Z+1, Angle, random(126), random(126), -1);
  3793. }
  3794. if(listitem == 23) // Back
  3795. {
  3796. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3797. }
  3798. }
  3799. return 1;
  3800. }
  3801. //==============================================================================
  3802. // Helicopters
  3803. //==============================================================================
  3804. if(dialogid == 106) // Helicopters
  3805. {
  3806. if(response)
  3807. {
  3808. if(listitem == 0) // Cargobob
  3809. {
  3810. CreateVehicleEx(playerid, 548, X,Y,Z+6, Angle, random(126), random(126), -1);
  3811. }
  3812. if(listitem == 1) // Leviathan
  3813. {
  3814. CreateVehicleEx(playerid,417, X,Y,Z+1, Angle, random(126), random(126), -1);
  3815. }
  3816. if(listitem == 2) // Maverick
  3817. {
  3818. CreateVehicleEx(playerid,487, X,Y,Z+1, Angle, random(126), random(126), -1);
  3819. }
  3820. if(listitem == 3) // Police Maverick
  3821. {
  3822. CreateVehicleEx(playerid,497, X,Y,Z+1, Angle, random(126), random(126), -1);
  3823. }
  3824. if(listitem == 4) // News Chopper
  3825. {
  3826. CreateVehicleEx(playerid,488, X,Y,Z+1, Angle, random(126), random(126), -1);
  3827. }
  3828. if(listitem == 5) // Raindance
  3829. {
  3830. CreateVehicleEx(playerid,563, X,Y,Z+1, Angle, random(126), random(126), -1);
  3831. }
  3832. if(listitem == 6) // Sparrow
  3833. {
  3834. CreateVehicleEx(playerid,469, X,Y,Z+1, Angle, random(126), random(126), -1);
  3835. }
  3836. if(listitem == 7) // Back
  3837. {
  3838. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3839. }
  3840. }
  3841. return 1;
  3842. }
  3843. //==============================================================================
  3844. // Planes
  3845. //==============================================================================
  3846. if(dialogid == 107) // Planes
  3847. {
  3848. if(response)
  3849. {
  3850. if(listitem == 0) // Andromada
  3851. {
  3852. CreateVehicleEx(playerid,592, X,Y,Z+1, Angle, random(126), random(126), -1);
  3853. }
  3854. if(listitem == 1) // At-400
  3855. {
  3856. CreateVehicleEx(playerid,577, X,Y,Z+1, Angle, random(126), random(126), -1);
  3857. }
  3858. if(listitem == 2) // Beagle
  3859. {
  3860. CreateVehicleEx(playerid,511, X,Y,Z+1, Angle, random(126), random(126), -1);
  3861. }
  3862. if(listitem == 3) // Cropduster
  3863. {
  3864. CreateVehicleEx(playerid,512, X,Y,Z+1, Angle, random(126), random(126), -1);
  3865. }
  3866. if(listitem == 4) // Dodo
  3867. {
  3868. CreateVehicleEx(playerid,593, X,Y,Z+1, Angle, random(126), random(126), -1);
  3869. }
  3870. if(listitem == 5) // Hydra
  3871. {
  3872. CreateVehicleEx(playerid,520, X,Y,Z+1, Angle, random(126), random(126), -1);
  3873. }
  3874. if(listitem == 6) // Nevada
  3875. {
  3876. CreateVehicleEx(playerid,553, X,Y,Z+1, Angle, random(126), random(126), -1);
  3877. }
  3878. if(listitem == 7) // Rustler
  3879. {
  3880. CreateVehicleEx(playerid,476, X,Y,Z+1, Angle, random(126), random(126), -1);
  3881. }
  3882. if(listitem == 8) // Shamal
  3883. {
  3884. CreateVehicleEx(playerid,519, X,Y,Z+1, Angle, random(126), random(126), -1);
  3885. }
  3886. if(listitem == 9) // Skimmer
  3887. {
  3888. CreateVehicleEx(playerid,460, X,Y,Z+1, Angle, random(126), random(126), -1);
  3889. }
  3890. if(listitem == 10) // Stuntplane
  3891. {
  3892. CreateVehicleEx(playerid,513, X,Y,Z+1, Angle, random(126), random(126), -1);
  3893. }
  3894. if(listitem == 11) // Back
  3895. {
  3896. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3897. }
  3898. }
  3899. return 1;
  3900. }
  3901. //==============================================================================
  3902. // Boats
  3903. //==============================================================================
  3904. if(dialogid == 108) // Boats
  3905. {
  3906. if(response)
  3907. {
  3908. if(listitem == 0) // Coastguard
  3909. {
  3910. CreateVehicleEx(playerid,472, X,Y,Z+1, Angle, random(126), random(126), -1);
  3911. }
  3912. if(listitem == 1) // Dinghy
  3913. {
  3914. CreateVehicleEx(playerid,473, X,Y,Z+1, Angle, random(126), random(126), -1);
  3915. }
  3916. if(listitem == 2) // Jetmax
  3917. {
  3918. CreateVehicleEx(playerid,493, X,Y,Z+1, Angle, random(126), random(126), -1);
  3919. }
  3920. if(listitem == 3) // Launch
  3921. {
  3922. CreateVehicleEx(playerid,595, X,Y,Z+1, Angle, random(126), random(126), -1);
  3923. }
  3924. if(listitem == 4) // Marquis
  3925. {
  3926. CreateVehicleEx(playerid,484, X,Y,Z+1, Angle, random(126), random(126), -1);
  3927. }
  3928. if(listitem == 5) // Reefer
  3929. {
  3930. CreateVehicleEx(playerid,453, X,Y,Z+1, Angle, random(126), random(126), -1);
  3931. }
  3932. if(listitem == 6) // Speeder
  3933. {
  3934. CreateVehicleEx(playerid,452, X,Y,Z+1, Angle, random(126), random(126), -1);
  3935. }
  3936. if(listitem == 7) // Squallo
  3937. {
  3938. CreateVehicleEx(playerid,446, X,Y,Z+1, Angle, random(126), random(126), -1);
  3939. }
  3940. if(listitem == 8) // Tropic
  3941. {
  3942. CreateVehicleEx(playerid,454, X,Y,Z+1, Angle, random(126), random(126), -1);
  3943. }
  3944. if(listitem == 9) // Back
  3945. {
  3946. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3947. }
  3948. }
  3949. return 1;
  3950. }
  3951. //==============================================================================
  3952. // Trains
  3953. //==============================================================================
  3954. if(dialogid == 109) // Trains
  3955. {
  3956. if(response)
  3957. {
  3958. if(listitem == 0) // Brown Streak
  3959. {
  3960. CreateVehicleEx(playerid,537, X,Y,Z+1, Angle, random(126), random(126) -1);
  3961. }
  3962. if(listitem == 1) // Freight Box Trailer
  3963. {
  3964. CreateVehicleEx(playerid, 590, X,Y,Z+1, Angle, random(126), random(126), -1);
  3965. }
  3966. if(listitem == 2) // Freight Flat Trailer
  3967. {
  3968. CreateVehicleEx(playerid,569, X,Y,Z+1, Angle, random(126), random(126), -1);
  3969. }
  3970. if(listitem == 3) // Freight
  3971. {
  3972. CreateVehicleEx(playerid,538, X,Y,Z+1, Angle, random(126), random(126) -1);
  3973. }
  3974. if(listitem == 4) // Streak Trailer
  3975. {
  3976. CreateVehicleEx(playerid,570, X,Y,Z+1, Angle, random(126), random(126), -1);
  3977. }
  3978. if(listitem == 5) // Tram
  3979. {
  3980. CreateVehicleEx(playerid,449, X,Y,Z+1, Angle, random(126), random(126), -1);
  3981. }
  3982. if(listitem == 6) // Back
  3983. {
  3984. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  3985. }
  3986. }
  3987. return 1;
  3988. }
  3989. //==============================================================================
  3990. // Trailers
  3991. //==============================================================================
  3992. if(dialogid == 110) // Trailers
  3993. {
  3994. if(response)
  3995. {
  3996. if(listitem == 0) // Article Trailer 1
  3997. {
  3998. CreateVehicleEx(playerid,435, X,Y,Z+1, Angle, random(126), random(126), -1);
  3999. }
  4000. if(listitem == 1) // Article Trailer 2
  4001. {
  4002. CreateVehicleEx(playerid,450, X,Y,Z+1, Angle, random(126), random(126), -1);
  4003. }
  4004. if(listitem == 2) // Article Trailer 3
  4005. {
  4006. CreateVehicleEx(playerid,591, X,Y,Z+1, Angle, random(126), random(126), -1);
  4007. }
  4008. if(listitem == 3) // Baggage Trailer (A)
  4009. {
  4010. CreateVehicleEx(playerid,606, X,Y,Z+1, Angle, random(126), random(126), -1);
  4011. }
  4012. if(listitem == 4) // Baggage Trailer (B)
  4013. {
  4014. CreateVehicleEx(playerid,607, X,Y,Z+1, Angle, random(126), random(126), -1);
  4015. }
  4016. if(listitem == 5) // Farm Trailer
  4017. {
  4018. CreateVehicleEx(playerid,610, X,Y,Z+1, Angle, random(126), random(126), -1);
  4019. }
  4020. if(listitem == 6) // Petrol Trailer
  4021. {
  4022. CreateVehicleEx(playerid,584, X,Y,Z+1, Angle, random(126), random(126), -1);
  4023. }
  4024. if(listitem == 7) // Tug Stairs Trailer
  4025. {
  4026. CreateVehicleEx(playerid,608, X,Y,Z+1, Angle, random(126), random(126), -1);
  4027. }
  4028. if(listitem == 8) // Utility Trailer
  4029. {
  4030. CreateVehicleEx(playerid,611, X,Y,Z+1, Angle, random(126), random(126), -1);
  4031. }
  4032. if(listitem == 9) // Back
  4033. {
  4034. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  4035. }
  4036. }
  4037. return 1;
  4038. }
  4039. //==============================================================================
  4040. // RC Vehicles + Vortex
  4041. //==============================================================================
  4042. if(dialogid == 111) // RC Vehicles + Vortex
  4043. {
  4044. if(response)
  4045. {
  4046. if(listitem == 0) // RC Bandit
  4047. {
  4048. CreateVehicleEx(playerid,441, X,Y,Z+1, Angle, random(126), random(126), -1);
  4049. }
  4050. if(listitem == 1) // RC Cam
  4051. {
  4052. CreateVehicleEx(playerid,594, X,Y,Z+1, Angle, random(126), random(126), -1);
  4053. }
  4054. if(listitem == 2) // RC Tiger
  4055. {
  4056. CreateVehicleEx(playerid,564, X,Y,Z+1, Angle, random(126), random(126), -1);
  4057. }
  4058. if(listitem == 3) // RC Baron
  4059. {
  4060. CreateVehicleEx(playerid,464, X,Y,Z+1, Angle, random(126), random(126), -1);
  4061. }
  4062. if(listitem == 4) // RC Goblin
  4063. {
  4064. CreateVehicleEx(playerid,501, X,Y,Z+1, Angle, random(126), random(126), -1);
  4065. }
  4066. if(listitem == 5) // RC Raider
  4067. {
  4068. CreateVehicleEx(playerid,465, X,Y,Z+1, Angle, random(126), random(126), -1);
  4069. }
  4070. if(listitem == 6) // Vortex
  4071. {
  4072. CreateVehicleEx(playerid,539, X,Y,Z+1, Angle, random(126), random(126), -1);
  4073. }
  4074. if(listitem == 7) // Back
  4075. {
  4076. ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "Vehicle Selection Menu","Bikes\nCars 1 [A-E]\nCars 2 [F-P]\nCars 3 [P-S]\nCars 4 [S-Z]\nHelicopters\nPlanes\nBoats\nTrains\nTrailers\nRC Vehicles + Vortex","Select","Cancel");
  4077. }
  4078. }
  4079. return 1;
  4080. }
  4081. return 0;
  4082. }
  4083. //==============================================================================
  4084. stock IsVehicleOccupied(vehicleid)
  4085. {
  4086. for(new i = 0; i < MAX_PLAYERS; i++)
  4087. {
  4088. if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
  4089. {
  4090. if(GetPlayerVehicleID(i) == vehicleid)
  4091. {
  4092. return 1;
  4093. }
  4094. }
  4095. }
  4096. return 0;
  4097. }
  4098. //==============================================================================
  4099. stock CreateVehicleEx(playerid, modelid, Float:posX, Float:posY, Float:posZ, Float:angle, Colour1, Colour2, respawn_delay)
  4100. {
  4101. new world = GetPlayerVirtualWorld(playerid);
  4102. new interior = GetPlayerInterior(playerid);
  4103. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  4104. {
  4105. DestroyVehicle(GetPlayerVehicleID(playerid));
  4106. GetPlayerPos(playerid, posX, posY, posZ);
  4107. GetPlayerFacingAngle(playerid, angle);
  4108. CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
  4109. LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
  4110. SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
  4111. SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
  4112. PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
  4113. SetPlayerInterior(playerid, interior);
  4114. }
  4115. if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  4116. {
  4117. if(IsVehicleOccupied(CurrentSpawnedVehicle[playerid])) {} else DestroyVehicle(CurrentSpawnedVehicle[playerid]);
  4118. GetPlayerPos(playerid, posX, posY, posZ);
  4119. GetPlayerFacingAngle(playerid, angle);
  4120. CurrentSpawnedVehicle[playerid] = CreateVehicle(modelid, posX, posY, posZ, angle, Colour1, Colour2, respawn_delay);
  4121. LinkVehicleToInterior(CurrentSpawnedVehicle[playerid], interior);
  4122. SetVehicleVirtualWorld(CurrentSpawnedVehicle[playerid], world);
  4123. SetVehicleZAngle(CurrentSpawnedVehicle[playerid], angle);
  4124. PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[playerid], 0);
  4125. SetPlayerInterior(playerid, interior);
  4126. }
  4127. return 1;
  4128. }
  4129. //==============================================================================
  4130. // Neons
  4131. //==============================================================================
  4132. if (dialogid == 10)
  4133. {
  4134. if (response)
  4135. {
  4136. if (listitem == 0)
  4137. {
  4138. ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST,"Neons!","\n{FF0000}Red\n{0000FF}Blue\n{00FF00}Green\n{FFFF00}Yellow\n{FF00FF}Pink\n{FFFFFF}White","Select","Cancel");
  4139. }
  4140. }
  4141. }
  4142. if(dialogid == 200)
  4143. {
  4144. if (listitem == 1)
  4145. {
  4146. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4147. GetVehicleZAngle(vehicleid,Float:z_angle);
  4148. VehicleObject[1] = CreateObject(18647,px,py,pz,prx,pry,prz,10);
  4149. VehicleObject[2] = CreateObject(18647,px,py,pz,prx,pry,prz,10);
  4150. AttachObjectToVehicle(VehicleObject[1],vehicleid,0.9004, 0.1164, -0.4655,0);
  4151. AttachObjectToVehicle(VehicleObject[2],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4152. GivePlayerMoney(playerid,-1500);
  4153. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4154. }
  4155. if (listitem == 2)
  4156. {
  4157. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4158. GetVehicleZAngle(vehicleid,Float:z_angle);
  4159. VehicleObject[3] = CreateObject(18648,px,py,pz,prx,pry,prz,10);
  4160. VehicleObject[4] = CreateObject(18648,px,py,pz,prx,pry,prz,10);
  4161. AttachObjectToVehicle(VehicleObject[3],vehicleid,0.9004, 0.1164, -0.4655,0);
  4162. AttachObjectToVehicle(VehicleObject[4],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4163. GivePlayerMoney(playerid,-1500);
  4164. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4165. }
  4166. if (listitem == 3)
  4167. {
  4168. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4169. GetVehicleZAngle(vehicleid,Float:z_angle);
  4170. VehicleObject[5] = CreateObject(18649,px,py,pz,prx,pry,prz,10);
  4171. VehicleObject[6] = CreateObject(18649,px,py,pz,prx,pry,prz,10);
  4172. AttachObjectToVehicle(VehicleObject[5],vehicleid,0.9004, 0.1164, -0.4655,0);
  4173. AttachObjectToVehicle(VehicleObject[6],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4174. GivePlayerMoney(playerid,-1500);
  4175. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4176. }
  4177. if (listitem == 4)
  4178. {
  4179. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4180. GetVehicleZAngle(vehicleid,Float:z_angle);
  4181. VehicleObject[7] = CreateObject(18650,px,py,pz,prx,pry,prz,10);
  4182. VehicleObject[8] = CreateObject(18650,px,py,pz,prx,pry,prz,10);
  4183. AttachObjectToVehicle(VehicleObject[7],vehicleid,0.9004, 0.1164, -0.4655,0);
  4184. AttachObjectToVehicle(VehicleObject[8],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4185. GivePlayerMoney(playerid,-1500);
  4186. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4187. }
  4188. if (listitem == 5)
  4189. {
  4190.  
  4191. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4192. GetVehicleZAngle(vehicleid,Float:z_angle);
  4193. VehicleObject[9] = CreateObject(18651,px,py,pz,prx,pry,prz,10);
  4194. VehicleObject[10] = CreateObject(18651,px,py,pz,prx,pry,prz,10);
  4195. AttachObjectToVehicle(VehicleObject[9],vehicleid,0.9004, 0.1164, -0.4655,0);
  4196. AttachObjectToVehicle(VehicleObject[10],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4197. GivePlayerMoney(playerid,-1500);
  4198. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4199. }
  4200. if (listitem == 6)
  4201. {
  4202.  
  4203. GetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  4204. GetVehicleZAngle(vehicleid,Float:z_angle);
  4205. VehicleObject[11] = CreateObject(18652,px,py,pz,prx,pry,prz,10);
  4206. VehicleObject[12] = CreateObject(18652,px,py,pz,prx,pry,prz,10);
  4207. AttachObjectToVehicle(VehicleObject[11],vehicleid,0.9004, 0.1164, -0.4655,0);
  4208. AttachObjectToVehicle(VehicleObject[12],vehicleid,-0.8706, 0.0570, -0.4655,0);
  4209. GivePlayerMoney(playerid,-1500);
  4210. SendClientMessage(playerid,0x83BFBFAA,"You succesfully added neon to your car!");
  4211. }
  4212. }
  4213. }
  4214. return 0;
  4215. }
  4216. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement