Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 84.25 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new curveh[MAX_PLAYERS];
  4. new curveh2[MAX_PLAYERS];
  5.  
  6. public OnPlayerDisconnect(playerid, reason)
  7. {
  8. curveh[playerid] = 0;
  9. curveh2[playerid] = 0;
  10. return 1;
  11. }
  12.  
  13.  
  14.  
  15. public OnPlayerCommandText(playerid, cmdtext[])
  16. {
  17. if (strcmp("/v", cmdtext, true, 10) == 0)
  18. {
  19. if(GetPlayerInterior(playerid) > 1) return GameTextForPlayer(playerid, "~r~You can't spawn cars in interior!", 5000, 5);
  20. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  21. return 1;
  22.  
  23. }
  24. return 0;
  25. }
  26.  
  27. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  28. {
  29. if(dialogid == 2009)
  30. {
  31. if(response)
  32. {
  33. if(listitem == 0)
  34. {
  35. ShowPlayerDialog(playerid, 2011, DIALOG_STYLE_LIST, "Planes", "Shamal\nNevada\nHydra\nStunt Plane\nAndromada\nAt 400\nBeagle\nCrop Duster\nDo-Do\nRustler\nSkimmer", "Îê", "Íàçàä");
  36. }
  37. if(listitem == 1)
  38. {
  39. ShowPlayerDialog(playerid, 2012, DIALOG_STYLE_LIST, "Helicopters", "Cargobob\nSparrow\nLeviathon\nPolice helicopter\nNews helicopter\nMaverick\nHunter\nRaindance\nSea Sparrow", "Îê", "Íàçàä");
  40. }
  41. if(listitem == 2)
  42. {
  43. ShowPlayerDialog(playerid, 2013, DIALOG_STYLE_LIST, "Bikes", "Bike\nBMX\nMountain Bike\nFaggio\nPizza boy\nBF-400\nNRG-500\nPCJ-600\nFCR-900\nCop bike\nFreeway\nWayfarer\nSanchez\nQuad", "Îê", "Íàçàä");
  44. }
  45. if(listitem == 3)
  46. {
  47. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  48. }
  49. if(listitem == 4)
  50. {
  51. ShowPlayerDialog(playerid, 2015, DIALOG_STYLE_LIST, "Boats", "Coast guard\nDingy\nSpeeder\nJetmax\nMarquis\nLaunch\nPolice boat\nReefer\nSquallo\nTropic", "Îê", "Íàçàä");
  52. }
  53. if(listitem == 5)
  54. {
  55. ShowPlayerDialog(playerid, 2057, DIALOG_STYLE_LIST, "RC", "Bandit\nBaron\nRaider\nGoblin\nTiger\nCam", "Îê", "Íàçàä");
  56. }
  57. }
  58. return 1;
  59. }
  60. if(dialogid == 2057)
  61. {
  62. if(response)
  63. {
  64. if(listitem == 0)
  65. {
  66. if(IsPlayerInAnyVehicle(playerid)) return
  67. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  68. new Float:x,Float:y,Float:z,Float:a, veh;
  69. GetPlayerPos(playerid,x,y,z);
  70. GetPlayerFacingAngle(playerid,a);
  71. veh = CreateVehicle(441,x+1,y+1,z,a,1,1,10000);
  72. PutPlayerInVehicle(playerid, veh, 0);
  73. }
  74. if(listitem == 1)
  75. {
  76. if(IsPlayerInAnyVehicle(playerid)) return
  77. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  78. new Float:x,Float:y,Float:z,Float:a, veh;
  79. GetPlayerPos(playerid,x,y,z);
  80. GetPlayerFacingAngle(playerid,a);
  81. veh = CreateVehicle(464,x+1,y+1,z,a,1,1,10000);
  82. PutPlayerInVehicle(playerid, veh, 0);
  83. }
  84. if(listitem == 2)
  85. {
  86. if(IsPlayerInAnyVehicle(playerid)) return
  87. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  88. new Float:x,Float:y,Float:z,Float:a, veh;
  89. GetPlayerPos(playerid,x,y,z);
  90. GetPlayerFacingAngle(playerid,a);
  91. veh = CreateVehicle(465,x+1,y+1,z,a,1,1,10000);
  92. PutPlayerInVehicle(playerid, veh, 0);
  93. }
  94. if(listitem == 3)
  95. {
  96. if(IsPlayerInAnyVehicle(playerid)) return
  97. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  98. new Float:x,Float:y,Float:z,Float:a, veh;
  99. GetPlayerPos(playerid,x,y,z);
  100. GetPlayerFacingAngle(playerid,a);
  101. veh = CreateVehicle(501,x+1,y+1,z,a,1,1,10000);
  102. PutPlayerInVehicle(playerid, veh, 0);
  103. }
  104. if(listitem == 4)
  105. {
  106. if(IsPlayerInAnyVehicle(playerid)) return
  107. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  108. new Float:x,Float:y,Float:z,Float:a, veh;
  109. GetPlayerPos(playerid,x,y,z);
  110. GetPlayerFacingAngle(playerid,a);
  111. veh = CreateVehicle(564,x+1,y+1,z,a,1,1,10000);
  112. PutPlayerInVehicle(playerid, veh, 0);
  113. }
  114. if(listitem == 5)
  115. {
  116. if(IsPlayerInAnyVehicle(playerid)) return
  117. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  118. new Float:x,Float:y,Float:z,Float:a, veh;
  119. GetPlayerPos(playerid,x,y,z);
  120. GetPlayerFacingAngle(playerid,a);
  121. veh = CreateVehicle(594,x+1,y+1,z,a,1,1,10000);
  122. PutPlayerInVehicle(playerid, veh, 0);
  123. }
  124. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  125. {
  126. DestroyVehicle(curveh[playerid]);
  127. }
  128. curveh[playerid] = GetPlayerVehicleID(playerid);
  129. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  130. }
  131. else
  132. {
  133.  
  134. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  135.  
  136. }
  137. return 1;
  138. }
  139.  
  140.  
  141. if(dialogid == 2012)
  142. {
  143. if(response)
  144. {
  145. if(listitem == 0)
  146. {
  147. if(IsPlayerInAnyVehicle(playerid)) return
  148. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  149. new Float:x,Float:y,Float:z,Float:a, veh;
  150. GetPlayerPos(playerid,x,y,z);
  151. GetPlayerFacingAngle(playerid,a);
  152. veh = CreateVehicle(548,x+1,y+1,z,a,1,1,10000);
  153. PutPlayerInVehicle(playerid, veh, 0);
  154. }
  155. if(listitem == 1)
  156. {
  157. if(IsPlayerInAnyVehicle(playerid)) return
  158. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  159. new Float:x,Float:y,Float:z,Float:a, veh;
  160. GetPlayerPos(playerid,x,y,z);
  161. GetPlayerFacingAngle(playerid,a);
  162. veh = CreateVehicle(469,x+1,y+1,z,a,1,1,10000);
  163. PutPlayerInVehicle(playerid, veh, 0);
  164. }
  165. if(listitem == 2)
  166. {
  167. if(IsPlayerInAnyVehicle(playerid)) return
  168. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  169. new Float:x,Float:y,Float:z,Float:a, veh;
  170. GetPlayerPos(playerid,x,y,z);
  171. GetPlayerFacingAngle(playerid,a);
  172. veh = CreateVehicle(417,x+1,y+1,z,a,1,1,10000);
  173. PutPlayerInVehicle(playerid, veh, 0);
  174. }
  175. if(listitem == 3)
  176. {
  177. if(IsPlayerInAnyVehicle(playerid)) return
  178. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  179. new Float:x,Float:y,Float:z,Float:a, veh;
  180. GetPlayerPos(playerid,x,y,z);
  181. GetPlayerFacingAngle(playerid,a);
  182. veh = CreateVehicle(497,x+1,y+1,z,a,1,1,10000);
  183. PutPlayerInVehicle(playerid, veh, 0);
  184. }
  185. if(listitem == 4)
  186. {
  187. if(IsPlayerInAnyVehicle(playerid)) return
  188. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  189. new Float:x,Float:y,Float:z,Float:a, veh;
  190. GetPlayerPos(playerid,x,y,z);
  191. GetPlayerFacingAngle(playerid,a);
  192. veh = CreateVehicle(488,x+1,y+1,z,a,1,1,10000);
  193. PutPlayerInVehicle(playerid, veh, 0);
  194. }
  195. if(listitem == 5)
  196. {
  197. if(IsPlayerInAnyVehicle(playerid)) return
  198. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  199. new Float:x,Float:y,Float:z,Float:a, veh;
  200. GetPlayerPos(playerid,x,y,z);
  201. GetPlayerFacingAngle(playerid,a);
  202. veh = CreateVehicle(487,x+1,y+1,z,a,1,1,10000);
  203. PutPlayerInVehicle(playerid, veh, 0);
  204. }
  205. if(listitem == 6)
  206. {
  207. if(IsPlayerInAnyVehicle(playerid)) return
  208. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  209. new Float:x,Float:y,Float:z,Float:a, veh;
  210. GetPlayerPos(playerid,x,y,z);
  211. GetPlayerFacingAngle(playerid,a);
  212. veh = CreateVehicle(425,x+1,y+1,z,a,1,1,10000);
  213. PutPlayerInVehicle(playerid, veh, 0);
  214. }
  215. if(listitem == 7)
  216. {
  217. if(IsPlayerInAnyVehicle(playerid)) return
  218. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  219. new Float:x,Float:y,Float:z,Float:a, veh;
  220. GetPlayerPos(playerid,x,y,z);
  221. GetPlayerFacingAngle(playerid,a);
  222. veh = CreateVehicle(563,x+1,y+1,z,a,1,1,10000);
  223. PutPlayerInVehicle(playerid, veh, 0);
  224. }
  225. if(listitem == 8)
  226. {
  227. if(IsPlayerInAnyVehicle(playerid)) return
  228. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  229. new Float:x,Float:y,Float:z,Float:a, veh;
  230. GetPlayerPos(playerid,x,y,z);
  231. GetPlayerFacingAngle(playerid,a);
  232. veh = CreateVehicle(447,x+1,y+1,z,a,1,1,10000);
  233. PutPlayerInVehicle(playerid, veh, 0);
  234. }
  235. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  236. {
  237. DestroyVehicle(curveh[playerid]);
  238. }
  239. curveh[playerid] = GetPlayerVehicleID(playerid);
  240. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  241. }
  242. else
  243. {
  244. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  245.  
  246. }
  247. return 1;
  248. }
  249.  
  250. if(dialogid == 2011)
  251. {
  252. if(response)
  253. {
  254. if(listitem == 0)
  255. {
  256. if(IsPlayerInAnyVehicle(playerid)) return
  257. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  258. new Float:x,Float:y,Float:z,Float:a, veh;
  259. GetPlayerPos(playerid,x,y,z);
  260. GetPlayerFacingAngle(playerid,a);
  261. veh = CreateVehicle(519,x+1,y+1,z,a,1,1,10000);
  262. PutPlayerInVehicle(playerid, veh, 0);
  263. }
  264. if(listitem == 1) // M4
  265. {
  266. if(IsPlayerInAnyVehicle(playerid)) return
  267. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  268. new Float:x,Float:y,Float:z,Float:a, veh;
  269. GetPlayerPos(playerid,x,y,z);
  270. GetPlayerFacingAngle(playerid,a);
  271. veh = CreateVehicle(553,x+1,y+1,z,a,1,1,10000);
  272. PutPlayerInVehicle(playerid, veh, 0);
  273. }
  274. if(listitem == 2) // Smg
  275. {
  276. if(IsPlayerInAnyVehicle(playerid)) return
  277. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  278. new Float:x,Float:y,Float:z,Float:a, veh;
  279. GetPlayerPos(playerid,x,y,z);
  280. GetPlayerFacingAngle(playerid,a);
  281. veh = CreateVehicle(520,x+1,y+1,z,a,1,1,10000);
  282. PutPlayerInVehicle(playerid, veh, 0);
  283. }
  284. if(listitem == 3) // Camera
  285. {
  286. if(IsPlayerInAnyVehicle(playerid)) return
  287. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  288. new Float:x,Float:y,Float:z,Float:a, veh;
  289. GetPlayerPos(playerid,x,y,z);
  290. GetPlayerFacingAngle(playerid,a);
  291. veh = CreateVehicle(513,x+1,y+1,z,a,1,1,10000);
  292. PutPlayerInVehicle(playerid, veh, 0);
  293. }
  294. if(listitem == 4) // Molotov
  295. {
  296. if(IsPlayerInAnyVehicle(playerid)) return
  297. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  298. new Float:x,Float:y,Float:z,Float:a, veh;
  299. GetPlayerPos(playerid,x,y,z);
  300. GetPlayerFacingAngle(playerid,a);
  301. veh = CreateVehicle(592,x+1,y+1,z,a,1,1,10000);
  302. PutPlayerInVehicle(playerid, veh, 0);
  303. }
  304. if(listitem == 5) // Molotov
  305. {
  306. if(IsPlayerInAnyVehicle(playerid)) return
  307. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  308. new Float:x,Float:y,Float:z,Float:a, veh;
  309. GetPlayerPos(playerid,x,y,z);
  310. GetPlayerFacingAngle(playerid,a);
  311. veh = CreateVehicle(577,x+1,y+1,z,a,1,1,10000);
  312. PutPlayerInVehicle(playerid, veh, 0);
  313. }
  314. if(listitem == 6) // Molotov
  315. {
  316. if(IsPlayerInAnyVehicle(playerid)) return
  317. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  318. new Float:x,Float:y,Float:z,Float:a, veh;
  319. GetPlayerPos(playerid,x,y,z);
  320. GetPlayerFacingAngle(playerid,a);
  321. veh = CreateVehicle(511,x+1,y+1,z,a,1,1,10000);
  322. PutPlayerInVehicle(playerid, veh, 0);
  323. }
  324. if(listitem == 7) // Molotov
  325. {
  326. if(IsPlayerInAnyVehicle(playerid)) return
  327. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  328. new Float:x,Float:y,Float:z,Float:a, veh;
  329. GetPlayerPos(playerid,x,y,z);
  330. GetPlayerFacingAngle(playerid,a);
  331. veh = CreateVehicle(512,x+1,y+1,z,a,1,1,10000);
  332. PutPlayerInVehicle(playerid, veh, 0);
  333. }
  334. if(listitem == 8) // Molotov
  335. {
  336. if(IsPlayerInAnyVehicle(playerid)) return
  337. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  338. new Float:x,Float:y,Float:z,Float:a, veh;
  339. GetPlayerPos(playerid,x,y,z);
  340. GetPlayerFacingAngle(playerid,a);
  341. veh = CreateVehicle(593,x+1,y+1,z,a,1,1,10000);
  342. PutPlayerInVehicle(playerid, veh, 0);
  343. }
  344. if(listitem == 9) // Molotov
  345. {
  346. if(IsPlayerInAnyVehicle(playerid)) return
  347. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  348. new Float:x,Float:y,Float:z,Float:a, veh;
  349. GetPlayerPos(playerid,x,y,z);
  350. GetPlayerFacingAngle(playerid,a);
  351. veh = CreateVehicle(476,x+1,y+1,z,a,1,1,10000);
  352. PutPlayerInVehicle(playerid, veh, 0);
  353. }
  354. if(listitem == 10) // Molotov
  355. {
  356. if(IsPlayerInAnyVehicle(playerid)) return
  357. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  358. new Float:x,Float:y,Float:z,Float:a, veh;
  359. GetPlayerPos(playerid,x,y,z);
  360. GetPlayerFacingAngle(playerid,a);
  361. veh = CreateVehicle(460,x+1,y+1,z,a,1,1,10000);
  362. PutPlayerInVehicle(playerid, veh, 0);
  363. }
  364. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  365. {
  366. DestroyVehicle(curveh[playerid]);
  367. }
  368. curveh[playerid] = GetPlayerVehicleID(playerid);
  369. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  370. }
  371. else
  372. {
  373. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  374. }
  375. return 1;
  376. }
  377. if(dialogid == 2013)
  378. {
  379. if(response)
  380. {
  381. if(listitem == 0)
  382. {
  383. if(IsPlayerInAnyVehicle(playerid)) return
  384. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  385. new Float:x,Float:y,Float:z,Float:a, veh;
  386. GetPlayerPos(playerid,x,y,z);
  387. GetPlayerFacingAngle(playerid,a);
  388. veh = CreateVehicle(509,x+1,y+1,z,a,1,1,10000);
  389. PutPlayerInVehicle(playerid, veh, 0);
  390. }
  391. if(listitem == 1)
  392. {
  393. if(IsPlayerInAnyVehicle(playerid)) return
  394. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  395. new Float:x,Float:y,Float:z,Float:a, veh;
  396. GetPlayerPos(playerid,x,y,z);
  397. GetPlayerFacingAngle(playerid,a);
  398. veh = CreateVehicle(481,x+1,y+1,z,a,1,1,10000);
  399. PutPlayerInVehicle(playerid, veh, 0);
  400. }
  401. if(listitem == 2)
  402. {
  403. if(IsPlayerInAnyVehicle(playerid)) return
  404. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  405. new Float:x,Float:y,Float:z,Float:a, veh;
  406. GetPlayerPos(playerid,x,y,z);
  407. GetPlayerFacingAngle(playerid,a);
  408. veh = CreateVehicle(510,x+1,y+1,z,a,1,1,10000);
  409. PutPlayerInVehicle(playerid, veh, 0);
  410. }
  411. if(listitem == 3)
  412. {
  413. if(IsPlayerInAnyVehicle(playerid)) return
  414. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  415. new Float:x,Float:y,Float:z,Float:a, veh;
  416. GetPlayerPos(playerid,x,y,z);
  417. GetPlayerFacingAngle(playerid,a);
  418. veh = CreateVehicle(462,x+1,y+1,z,a,1,1,10000);
  419. PutPlayerInVehicle(playerid, veh, 0);
  420. }
  421. if(listitem == 4)
  422. {
  423. if(IsPlayerInAnyVehicle(playerid)) return
  424. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  425. new Float:x,Float:y,Float:z,Float:a, veh;
  426. GetPlayerPos(playerid,x,y,z);
  427. GetPlayerFacingAngle(playerid,a);
  428. veh = CreateVehicle(448,x+1,y+1,z,a,1,1,10000);
  429. PutPlayerInVehicle(playerid, veh, 0);
  430. }
  431. if(listitem == 5)
  432. {
  433. if(IsPlayerInAnyVehicle(playerid)) return
  434. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  435. new Float:x,Float:y,Float:z,Float:a, veh;
  436. GetPlayerPos(playerid,x,y,z);
  437. GetPlayerFacingAngle(playerid,a);
  438. veh = CreateVehicle(581,x+1,y+1,z,a,1,1,10000);
  439. PutPlayerInVehicle(playerid, veh, 0);
  440. }
  441. if(listitem == 6)
  442. {
  443. if(IsPlayerInAnyVehicle(playerid)) return
  444. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  445. new Float:x,Float:y,Float:z,Float:a, veh;
  446. GetPlayerPos(playerid,x,y,z);
  447. GetPlayerFacingAngle(playerid,a);
  448. veh = CreateVehicle(522,x+1,y+1,z,a,1,1,10000);
  449. PutPlayerInVehicle(playerid, veh, 0);
  450. }
  451. if(listitem == 7)
  452. {
  453. if(IsPlayerInAnyVehicle(playerid)) return
  454. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  455. new Float:x,Float:y,Float:z,Float:a, veh;
  456. GetPlayerPos(playerid,x,y,z);
  457. GetPlayerFacingAngle(playerid,a);
  458. veh = CreateVehicle(461,x+1,y+1,z,a,1,1,10000);
  459. PutPlayerInVehicle(playerid, veh, 0);
  460. }
  461. if(listitem == 8)
  462. {
  463. if(IsPlayerInAnyVehicle(playerid)) return
  464. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  465. new Float:x,Float:y,Float:z,Float:a, veh;
  466. GetPlayerPos(playerid,x,y,z);
  467. GetPlayerFacingAngle(playerid,a);
  468. veh = CreateVehicle(521,x+1,y+1,z,a,1,1,10000);
  469. PutPlayerInVehicle(playerid, veh, 0);
  470. }
  471. if(listitem == 9)
  472. {
  473. if(IsPlayerInAnyVehicle(playerid)) return
  474. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  475. new Float:x,Float:y,Float:z,Float:a, veh;
  476. GetPlayerPos(playerid,x,y,z);
  477. GetPlayerFacingAngle(playerid,a);
  478. veh = CreateVehicle(523,x+1,y+1,z,a,1,1,10000);
  479. PutPlayerInVehicle(playerid, veh, 0);
  480. }
  481. if(listitem == 10)
  482. {
  483. if(IsPlayerInAnyVehicle(playerid)) return
  484. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  485. new Float:x,Float:y,Float:z,Float:a, veh;
  486. GetPlayerPos(playerid,x,y,z);
  487. GetPlayerFacingAngle(playerid,a);
  488. veh = CreateVehicle(463,x+1,y+1,z,a,1,1,10000);
  489. PutPlayerInVehicle(playerid, veh, 0);
  490. }
  491. if(listitem == 11)
  492. {
  493. if(IsPlayerInAnyVehicle(playerid)) return
  494. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  495. new Float:x,Float:y,Float:z,Float:a, veh;
  496. GetPlayerPos(playerid,x,y,z);
  497. GetPlayerFacingAngle(playerid,a);
  498. veh = CreateVehicle(586,x+1,y+1,z,a,1,1,10000);
  499. PutPlayerInVehicle(playerid, veh, 0);
  500. }
  501. if(listitem == 12)
  502. {
  503. if(IsPlayerInAnyVehicle(playerid)) return
  504. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  505. new Float:x,Float:y,Float:z,Float:a, veh;
  506. GetPlayerPos(playerid,x,y,z);
  507. GetPlayerFacingAngle(playerid,a);
  508. veh = CreateVehicle(468,x+1,y+1,z,a,1,1,10000);
  509. PutPlayerInVehicle(playerid, veh, 0);
  510. }
  511. if(listitem == 13)
  512. {
  513. if(IsPlayerInAnyVehicle(playerid)) return
  514. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  515. new Float:x,Float:y,Float:z,Float:a, veh;
  516. GetPlayerPos(playerid,x,y,z);
  517. GetPlayerFacingAngle(playerid,a);
  518. veh = CreateVehicle(471,x+1,y+1,z,a,1,1,10000);
  519. PutPlayerInVehicle(playerid, veh, 0);
  520. }
  521. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  522. {
  523. DestroyVehicle(curveh[playerid]);
  524. }
  525. curveh[playerid] = GetPlayerVehicleID(playerid);
  526. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  527. }
  528. else
  529. {
  530.  
  531. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  532.  
  533. }
  534. return 1;
  535. }
  536. if(dialogid == 2014)
  537. {
  538. if(response)
  539. {
  540. if(listitem == 0)
  541. {
  542. ShowPlayerDialog(playerid, 2048, DIALOG_STYLE_LIST, "Convertibles", "Comet(trans.)\nFeltzer(trans.)\nStallion(trans.)\nWindsor(trans.)", "Îê", "Íàçàä");
  543. }
  544. if(listitem == 1)
  545. {
  546. ShowPlayerDialog(playerid, 2049, DIALOG_STYLE_LIST, "Industrial", "Benson\nBobcat(trans.)\nBurrito\nBoxville\nBoxburg\nCement Truck\nDFT-30\nFlatbed\nLinerunner\nMule\nNewsvan\nPacker\nPetrol tanker\nPicador(trans.)\nPony\nRoadtrain\nRumpo\nSadler\nSadler-shit\nTopfun\nTractor\nTrashmaster\nUtility Van\nWalton(trans.)\nYankee\nYosemite", "Îê", "Íàçàä");
  547. }
  548. if(listitem == 2)
  549. {
  550. ShowPlayerDialog(playerid, 2050, DIALOG_STYLE_LIST, "Lowrides", "Blade(loco.)\nBroadway(loco.)\nRemington(loco.)\nSavanna(loco.)\nSlamvan(loco.)\nTahoma(trans.)\nTornado(loco.)\nVoodoo(loco.)", "Îê", "Íàçàä");
  551. }
  552. if(listitem == 3)
  553. {
  554. ShowPlayerDialog(playerid, 2051, DIALOG_STYLE_LIST, "Off road", "Bandito\nInjection(trans.)\nDune\nHuntley(trans.)\nLandstalker(trans.)\nMesa(trans.)\nMonster\nMonster A\nMonster B\nPatriot\nRancher(trans.)\nRancher 2(trans.)\nSandking", "Îê", "Íàçàä");
  555. }
  556. if(listitem == 4)
  557. {
  558. ShowPlayerDialog(playerid, 2052, DIALOG_STYLE_LIST, "Public Service", "Ambulance\nBarracks\nBus\nCabbie(trans.)\nCouch\nCop Bike\nEnforcer\nRancher\nFBI truck\nFiretruck\nFiretruck 2\nLS Police Car\nLV Police Car\nSF Police Car\nRanger\nRhino\nSWAT\nTaxi(trans.)", "Îê", "Íàçàä");
  559. }
  560. if(listitem == 5)
  561. {
  562. new dialogbox[3200];
  563. strcat(dialogbox,"Admiral(trans.)\nBlooding Banger\nBravura(trans.)\nBuccaneer(trans.)\nCadrona(trans.)\nClover(trans.)\nElegant(trans.)\nElegy(arch.)\nEmperror(trans.)\nEsperanto(trans.)\nFortune(trans.)\nGlendale-Shit\nGlendale(trans.)\nGreenwood(trans.)\nHermes(trans.)\nIntruder(trans.)\nMajestic(trans.)\n");
  564. strcat(dialogbox,"Manana(trans.)\nMerit(trans.)\nNebula(trans.)\nOceanic(trans.)\nPremier(trans.)\nPrevio(trans.)\nPrimo(trans.)\nSentinel(trans.)\nStafford(trans.)\nSultan(arch.)\nSunrise(trans.)\nTampa(trans.)\nVincent(trans.)\nVirgo(trans.)\nWillard(trans.)\nWashington(trans.)");
  565. ShowPlayerDialog(playerid, 2053, DIALOG_STYLE_LIST, "Saloons", dialogbox, "Îê", "Íàçàä");
  566. }
  567. if(listitem == 6)
  568. {
  569. ShowPlayerDialog(playerid, 2054, DIALOG_STYLE_LIST, "Sport", "Alpha(trans.)\nBanshee(trans.)\nBlista compact(trans.)\nBuffalo(trans.)\nBullet(trans.)\nCheetah(trans.)\nClub(trans.)\nEuros(trans.)\nFlash(arch.)\nHotring 1\nHotring 2\nHotring 3\nInfernus(trans.)\nJester(arch.)\nPhoenix(trans.)\nSabre(trans.)\nSuper GT(trans.)\nTurismo(trans.)\nUranus(arch.)\nZR-350(trans.)", "Îê", "Íàçàä");
  570. }
  571. if(listitem == 7)
  572. {
  573. ShowPlayerDialog(playerid, 2055, DIALOG_STYLE_LIST, "Wagons", "Moonbeam(trans.)\nPerenniel(trans.)\nRegina(trans.)\nSolair(trans.)\nStratum(trans.)", "Îê", "Íàçàä");
  574. }
  575. if(listitem == 8)
  576. {
  577. ShowPlayerDialog(playerid, 2056, DIALOG_STYLE_LIST, "Unique", "Baggage\nCaddy\nCamper\nCombine Harvester\nDozer\nDumper\nForklift\nHotknife\nHustler(trans.)\nHotdog\nJourney\nKart\nMower\nMr.Whoopee\nRomero(trans.)\nSecuricar\nStretch(trans.)\nSweeper\nTowtruck\nTug\nVortex", "Îê", "Íàçàä");
  578. }
  579. }
  580. else
  581. {
  582.  
  583. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  584.  
  585. }
  586. return 1;
  587. }
  588. if(dialogid == 2015)
  589. {
  590. if(response)
  591. {
  592. if(listitem == 0)
  593. {
  594. if(IsPlayerInAnyVehicle(playerid)) return
  595. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  596. new Float:x,Float:y,Float:z,Float:a, veh;
  597. GetPlayerPos(playerid,x,y,z);
  598. GetPlayerFacingAngle(playerid,a);
  599. veh = CreateVehicle(472,x+1,y+1,z,a,1,1,10000);
  600. PutPlayerInVehicle(playerid, veh, 0);
  601. }
  602. if(listitem == 1)
  603. {
  604. if(IsPlayerInAnyVehicle(playerid)) return
  605. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  606. new Float:x,Float:y,Float:z,Float:a, veh;
  607. GetPlayerPos(playerid,x,y,z);
  608. GetPlayerFacingAngle(playerid,a);
  609. veh = CreateVehicle(473,x+1,y+1,z,a,1,1,10000);
  610. PutPlayerInVehicle(playerid, veh, 0);
  611. }
  612. if(listitem == 2)
  613. {
  614. if(IsPlayerInAnyVehicle(playerid)) return
  615. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  616. new Float:x,Float:y,Float:z,Float:a, veh;
  617. GetPlayerPos(playerid,x,y,z);
  618. GetPlayerFacingAngle(playerid,a);
  619. veh = CreateVehicle(452,x+1,y+1,z,a,1,1,10000);
  620. PutPlayerInVehicle(playerid, veh, 0);
  621. }
  622. if(listitem == 3)
  623. {
  624. if(IsPlayerInAnyVehicle(playerid)) return
  625. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  626. new Float:x,Float:y,Float:z,Float:a, veh;
  627. GetPlayerPos(playerid,x,y,z);
  628. GetPlayerFacingAngle(playerid,a);
  629. veh = CreateVehicle(493,x+1,y+1,z,a,1,1,10000);
  630. PutPlayerInVehicle(playerid, veh, 0);
  631. }
  632. if(listitem == 4)
  633. {
  634. if(IsPlayerInAnyVehicle(playerid)) return
  635. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  636. new Float:x,Float:y,Float:z,Float:a, veh;
  637. GetPlayerPos(playerid,x,y,z);
  638. GetPlayerFacingAngle(playerid,a);
  639. veh = CreateVehicle(484,x+1,y+1,z,a,1,1,10000);
  640. PutPlayerInVehicle(playerid, veh, 0);
  641. }
  642. if(listitem == 5)
  643. {
  644. if(IsPlayerInAnyVehicle(playerid)) return
  645. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  646. new Float:x,Float:y,Float:z,Float:a, veh;
  647. GetPlayerPos(playerid,x,y,z);
  648. GetPlayerFacingAngle(playerid,a);
  649. veh = CreateVehicle(595,x+1,y+1,z,a,1,1,10000);
  650. PutPlayerInVehicle(playerid, veh, 0);
  651. }
  652. if(listitem == 6)
  653. {
  654. if(IsPlayerInAnyVehicle(playerid)) return
  655. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  656. new Float:x,Float:y,Float:z,Float:a, veh;
  657. GetPlayerPos(playerid,x,y,z);
  658. GetPlayerFacingAngle(playerid,a);
  659. veh = CreateVehicle(430,x+1,y+1,z,a,1,1,10000);
  660. PutPlayerInVehicle(playerid, veh, 0);
  661. }
  662. if(listitem == 7)
  663. {
  664. if(IsPlayerInAnyVehicle(playerid)) return
  665. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  666. new Float:x,Float:y,Float:z,Float:a, veh;
  667. GetPlayerPos(playerid,x,y,z);
  668. GetPlayerFacingAngle(playerid,a);
  669. veh = CreateVehicle(453,x+1,y+1,z,a,1,1,10000);
  670. PutPlayerInVehicle(playerid, veh, 0);
  671. }
  672. if(listitem == 8)
  673. {
  674. if(IsPlayerInAnyVehicle(playerid)) return
  675. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  676. new Float:x,Float:y,Float:z,Float:a, veh;
  677. GetPlayerPos(playerid,x,y,z);
  678. GetPlayerFacingAngle(playerid,a);
  679. veh = CreateVehicle(446,x+1,y+1,z,a,1,1,10000);
  680. PutPlayerInVehicle(playerid, veh, 0);
  681. }
  682. if(listitem == 9)
  683. {
  684. if(IsPlayerInAnyVehicle(playerid)) return
  685. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  686. new Float:x,Float:y,Float:z,Float:a, veh;
  687. GetPlayerPos(playerid,x,y,z);
  688. GetPlayerFacingAngle(playerid,a);
  689. veh = CreateVehicle(454,x+1,y+1,z,a,1,1,10000);
  690. PutPlayerInVehicle(playerid, veh, 0);
  691. }
  692. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  693. {
  694. DestroyVehicle(curveh[playerid]);
  695. }
  696. curveh[playerid] = GetPlayerVehicleID(playerid);
  697. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  698. }
  699. else
  700. {
  701.  
  702. ShowPlayerDialog(playerid, 2009, DIALOG_STYLE_LIST, "Vehicles", "{FFFFFF}Planes\n{FFFFFF}Helicopters\n{FFFFFF}Bikes\n{FFFFFF}Cars\n{FFFFFF}Boats\n{FFFFFF}RC vehicles", "Îê", "Íàçàä");
  703.  
  704. }
  705. return 1;
  706. }
  707. if(dialogid == 2048)
  708. {
  709. if(response)
  710. {
  711. if(listitem == 0)
  712. {
  713. if(IsPlayerInAnyVehicle(playerid)) return
  714. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  715. new Float:x,Float:y,Float:z,Float:a, veh;
  716. GetPlayerPos(playerid,x,y,z);
  717. GetPlayerFacingAngle(playerid,a);
  718. veh = CreateVehicle(480,x+1,y+1,z,a,1,1,10000);
  719. PutPlayerInVehicle(playerid, veh, 0);
  720. }
  721. if(listitem == 1)
  722. {
  723. if(IsPlayerInAnyVehicle(playerid)) return
  724. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  725. new Float:x,Float:y,Float:z,Float:a, veh;
  726. GetPlayerPos(playerid,x,y,z);
  727. GetPlayerFacingAngle(playerid,a);
  728. veh = CreateVehicle(533,x+1,y+1,z,a,1,1,10000);
  729. PutPlayerInVehicle(playerid, veh, 0);
  730. }
  731. if(listitem == 2)
  732. {
  733. if(IsPlayerInAnyVehicle(playerid)) return
  734. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  735. new Float:x,Float:y,Float:z,Float:a, veh;
  736. GetPlayerPos(playerid,x,y,z);
  737. GetPlayerFacingAngle(playerid,a);
  738. veh = CreateVehicle(439,x+1,y+1,z,a,1,1,10000);
  739. PutPlayerInVehicle(playerid, veh, 0);
  740. }
  741. if(listitem == 3)
  742. {
  743. if(IsPlayerInAnyVehicle(playerid)) return
  744. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  745. new Float:x,Float:y,Float:z,Float:a, veh;
  746. GetPlayerPos(playerid,x,y,z);
  747. GetPlayerFacingAngle(playerid,a);
  748. veh = CreateVehicle(555,x+1,y+1,z,a,1,1,10000);
  749. PutPlayerInVehicle(playerid, veh, 0);
  750. }
  751. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  752. {
  753. DestroyVehicle(curveh[playerid]);
  754. }
  755. curveh[playerid] = GetPlayerVehicleID(playerid);
  756. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  757. }
  758. else
  759. {
  760.  
  761. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  762.  
  763. }
  764. return 1;
  765. }
  766. if(dialogid == 2049)
  767. {
  768. if(response)
  769. {
  770. if(listitem == 0)
  771. {
  772. if(IsPlayerInAnyVehicle(playerid)) return
  773. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  774. new Float:x,Float:y,Float:z,Float:a, veh;
  775. GetPlayerPos(playerid,x,y,z);
  776. GetPlayerFacingAngle(playerid,a);
  777. veh = CreateVehicle(499,x+1,y+1,z,a,1,1,10000);
  778. PutPlayerInVehicle(playerid, veh, 0);
  779. }
  780. if(listitem == 1)
  781. {
  782. if(IsPlayerInAnyVehicle(playerid)) return
  783. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  784. new Float:x,Float:y,Float:z,Float:a, veh;
  785. GetPlayerPos(playerid,x,y,z);
  786. GetPlayerFacingAngle(playerid,a);
  787. veh = CreateVehicle(422,x+1,y+1,z,a,1,1,10000);
  788. PutPlayerInVehicle(playerid, veh, 0);
  789. }
  790. if(listitem == 2)
  791. {
  792. if(IsPlayerInAnyVehicle(playerid)) return
  793. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  794. new Float:x,Float:y,Float:z,Float:a, veh;
  795. GetPlayerPos(playerid,x,y,z);
  796. GetPlayerFacingAngle(playerid,a);
  797. veh = CreateVehicle(482,x+1,y+1,z,a,1,1,10000);
  798. PutPlayerInVehicle(playerid, veh, 0);
  799. }
  800. if(listitem == 3)
  801. {
  802. if(IsPlayerInAnyVehicle(playerid)) return
  803. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  804. new Float:x,Float:y,Float:z,Float:a, veh;
  805. GetPlayerPos(playerid,x,y,z);
  806. GetPlayerFacingAngle(playerid,a);
  807. veh = CreateVehicle(498,x+1,y+1,z,a,1,1,10000);
  808. PutPlayerInVehicle(playerid, veh, 0);
  809. }
  810. if(listitem == 4)
  811. {
  812. if(IsPlayerInAnyVehicle(playerid)) return
  813. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  814. new Float:x,Float:y,Float:z,Float:a, veh;
  815. GetPlayerPos(playerid,x,y,z);
  816. GetPlayerFacingAngle(playerid,a);
  817. veh = CreateVehicle(609,x+1,y+1,z,a,1,1,10000);
  818. PutPlayerInVehicle(playerid, veh, 0);
  819. }
  820. if(listitem == 5)
  821. {
  822. if(IsPlayerInAnyVehicle(playerid)) return
  823. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  824. new Float:x,Float:y,Float:z,Float:a, veh;
  825. GetPlayerPos(playerid,x,y,z);
  826. GetPlayerFacingAngle(playerid,a);
  827. veh = CreateVehicle(524,x+1,y+1,z,a,1,1,10000);
  828. PutPlayerInVehicle(playerid, veh, 0);
  829. }
  830. if(listitem == 6)
  831. {
  832. if(IsPlayerInAnyVehicle(playerid)) return
  833. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  834. new Float:x,Float:y,Float:z,Float:a, veh;
  835. GetPlayerPos(playerid,x,y,z);
  836. GetPlayerFacingAngle(playerid,a);
  837. veh = CreateVehicle(579,x+1,y+1,z,a,1,1,10000);
  838. PutPlayerInVehicle(playerid, veh, 0);
  839. }
  840. if(listitem == 7)
  841. {
  842. if(IsPlayerInAnyVehicle(playerid)) return
  843. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  844. new Float:x,Float:y,Float:z,Float:a, veh;
  845. GetPlayerPos(playerid,x,y,z);
  846. GetPlayerFacingAngle(playerid,a);
  847. veh = CreateVehicle(455,x+1,y+1,z,a,1,1,10000);
  848. PutPlayerInVehicle(playerid, veh, 0);
  849. }
  850. if(listitem == 8)
  851. {
  852. if(IsPlayerInAnyVehicle(playerid)) return
  853. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  854. new Float:x,Float:y,Float:z,Float:a, veh;
  855. GetPlayerPos(playerid,x,y,z);
  856. GetPlayerFacingAngle(playerid,a);
  857. veh = CreateVehicle(403,x+1,y+1,z,a,1,1,10000);
  858. PutPlayerInVehicle(playerid, veh, 0);
  859. }
  860. if(listitem == 9)
  861. {
  862. if(IsPlayerInAnyVehicle(playerid)) return
  863. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  864. new Float:x,Float:y,Float:z,Float:a, veh;
  865. GetPlayerPos(playerid,x,y,z);
  866. GetPlayerFacingAngle(playerid,a);
  867. veh = CreateVehicle(414,x+1,y+1,z,a,1,1,10000);
  868. PutPlayerInVehicle(playerid, veh, 0);
  869. }
  870. if(listitem == 10)
  871. {
  872. if(IsPlayerInAnyVehicle(playerid)) return
  873. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  874. new Float:x,Float:y,Float:z,Float:a, veh;
  875. GetPlayerPos(playerid,x,y,z);
  876. GetPlayerFacingAngle(playerid,a);
  877. veh = CreateVehicle(582,x+1,y+1,z,a,1,1,10000);
  878. PutPlayerInVehicle(playerid, veh, 0);
  879. }
  880. if(listitem == 11)
  881. {
  882. if(IsPlayerInAnyVehicle(playerid)) return
  883. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  884. new Float:x,Float:y,Float:z,Float:a, veh;
  885. GetPlayerPos(playerid,x,y,z);
  886. GetPlayerFacingAngle(playerid,a);
  887. veh = CreateVehicle(443,x+1,y+1,z,a,1,1,10000);
  888. PutPlayerInVehicle(playerid, veh, 0);
  889. }
  890. if(listitem == 12)
  891. {
  892. if(IsPlayerInAnyVehicle(playerid)) return
  893. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  894. new Float:x,Float:y,Float:z,Float:a, veh;
  895. GetPlayerPos(playerid,x,y,z);
  896. GetPlayerFacingAngle(playerid,a);
  897. veh = CreateVehicle(514,x+1,y+1,z,a,1,1,10000);
  898. PutPlayerInVehicle(playerid, veh, 0);
  899. }
  900. if(listitem == 13)
  901. {
  902. if(IsPlayerInAnyVehicle(playerid)) return
  903. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  904. new Float:x,Float:y,Float:z,Float:a, veh;
  905. GetPlayerPos(playerid,x,y,z);
  906. GetPlayerFacingAngle(playerid,a);
  907. veh = CreateVehicle(600,x+1,y+1,z,a,1,1,10000);
  908. PutPlayerInVehicle(playerid, veh, 0);
  909. }
  910. if(listitem == 14)
  911. {
  912. if(IsPlayerInAnyVehicle(playerid)) return
  913. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  914. new Float:x,Float:y,Float:z,Float:a, veh;
  915. GetPlayerPos(playerid,x,y,z);
  916. GetPlayerFacingAngle(playerid,a);
  917. veh = CreateVehicle(413,x+1,y+1,z,a,1,1,10000);
  918. PutPlayerInVehicle(playerid, veh, 0);
  919. }
  920. if(listitem == 15)
  921. {
  922. if(IsPlayerInAnyVehicle(playerid)) return
  923. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  924. new Float:x,Float:y,Float:z,Float:a, veh;
  925. GetPlayerPos(playerid,x,y,z);
  926. GetPlayerFacingAngle(playerid,a);
  927. veh = CreateVehicle(515,x+1,y+1,z,a,1,1,10000);
  928. PutPlayerInVehicle(playerid, veh, 0);
  929. }
  930. if(listitem == 16)
  931. {
  932. if(IsPlayerInAnyVehicle(playerid)) return
  933. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  934. new Float:x,Float:y,Float:z,Float:a, veh;
  935. GetPlayerPos(playerid,x,y,z);
  936. GetPlayerFacingAngle(playerid,a);
  937. veh = CreateVehicle(440,x+1,y+1,z,a,1,1,10000);
  938. PutPlayerInVehicle(playerid, veh, 0);
  939. }
  940. if(listitem == 17)
  941. {
  942. if(IsPlayerInAnyVehicle(playerid)) return
  943. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  944. new Float:x,Float:y,Float:z,Float:a, veh;
  945. GetPlayerPos(playerid,x,y,z);
  946. GetPlayerFacingAngle(playerid,a);
  947. veh = CreateVehicle(543,x+1,y+1,z,a,1,1,10000);
  948. PutPlayerInVehicle(playerid, veh, 0);
  949. }
  950. if(listitem == 18)
  951. {
  952. if(IsPlayerInAnyVehicle(playerid)) return
  953. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  954. new Float:x,Float:y,Float:z,Float:a, veh;
  955. GetPlayerPos(playerid,x,y,z);
  956. GetPlayerFacingAngle(playerid,a);
  957. veh = CreateVehicle(605,x+1,y+1,z,a,1,1,10000);
  958. PutPlayerInVehicle(playerid, veh, 0);
  959. }
  960. if(listitem == 19)
  961. {
  962. if(IsPlayerInAnyVehicle(playerid)) return
  963. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  964. new Float:x,Float:y,Float:z,Float:a, veh;
  965. GetPlayerPos(playerid,x,y,z);
  966. GetPlayerFacingAngle(playerid,a);
  967. veh = CreateVehicle(459,x+1,y+1,z,a,1,1,10000);
  968. PutPlayerInVehicle(playerid, veh, 0);
  969. }
  970. if(listitem == 20)
  971. {
  972. if(IsPlayerInAnyVehicle(playerid)) return
  973. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  974. new Float:x,Float:y,Float:z,Float:a, veh;
  975. GetPlayerPos(playerid,x,y,z);
  976. GetPlayerFacingAngle(playerid,a);
  977. veh = CreateVehicle(531,x+1,y+1,z,a,1,1,10000);
  978. PutPlayerInVehicle(playerid, veh, 0);
  979. }
  980. if(listitem == 21)
  981. {
  982. if(IsPlayerInAnyVehicle(playerid)) return
  983. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  984. new Float:x,Float:y,Float:z,Float:a, veh;
  985. GetPlayerPos(playerid,x,y,z);
  986. GetPlayerFacingAngle(playerid,a);
  987. veh = CreateVehicle(408,x+1,y+1,z,a,1,1,10000);
  988. PutPlayerInVehicle(playerid, veh, 0);
  989. }
  990. if(listitem == 22)
  991. {
  992. if(IsPlayerInAnyVehicle(playerid)) return
  993. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  994. new Float:x,Float:y,Float:z,Float:a, veh;
  995. GetPlayerPos(playerid,x,y,z);
  996. GetPlayerFacingAngle(playerid,a);
  997. veh = CreateVehicle(552,x+1,y+1,z,a,1,1,10000);
  998. PutPlayerInVehicle(playerid, veh, 0);
  999. }
  1000. if(listitem == 23)
  1001. {
  1002. if(IsPlayerInAnyVehicle(playerid)) return
  1003. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1004. new Float:x,Float:y,Float:z,Float:a, veh;
  1005. GetPlayerPos(playerid,x,y,z);
  1006. GetPlayerFacingAngle(playerid,a);
  1007. veh = CreateVehicle(478,x+1,y+1,z,a,1,1,10000);
  1008. PutPlayerInVehicle(playerid, veh, 0);
  1009. }
  1010. if(listitem == 24)
  1011. {
  1012. if(IsPlayerInAnyVehicle(playerid)) return
  1013. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1014. new Float:x,Float:y,Float:z,Float:a, veh;
  1015. GetPlayerPos(playerid,x,y,z);
  1016. GetPlayerFacingAngle(playerid,a);
  1017. veh = CreateVehicle(456,x+1,y+1,z,a,1,1,10000);
  1018. PutPlayerInVehicle(playerid, veh, 0);
  1019. }
  1020. if(listitem == 25)
  1021. {
  1022. if(IsPlayerInAnyVehicle(playerid)) return
  1023. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1024. new Float:x,Float:y,Float:z,Float:a, veh;
  1025. GetPlayerPos(playerid,x,y,z);
  1026. GetPlayerFacingAngle(playerid,a);
  1027. veh = CreateVehicle(554,x+1,y+1,z,a,1,1,10000);
  1028. PutPlayerInVehicle(playerid, veh, 0);
  1029. }
  1030. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  1031. {
  1032. DestroyVehicle(curveh[playerid]);
  1033. }
  1034. curveh[playerid] = GetPlayerVehicleID(playerid);
  1035. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  1036. }
  1037. else
  1038. {
  1039.  
  1040. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  1041.  
  1042. }
  1043. return 1;
  1044. }
  1045. if(dialogid == 2050)
  1046. {
  1047. if(response)
  1048. {
  1049. if(listitem == 0)
  1050. {
  1051. if(IsPlayerInAnyVehicle(playerid)) return
  1052. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1053. new Float:x,Float:y,Float:z,Float:a, veh;
  1054. GetPlayerPos(playerid,x,y,z);
  1055. GetPlayerFacingAngle(playerid,a);
  1056. veh = CreateVehicle(536,x+1,y+1,z,a,1,1,10000);
  1057. PutPlayerInVehicle(playerid, veh, 0);
  1058. }
  1059. if(listitem == 1)
  1060. {
  1061. if(IsPlayerInAnyVehicle(playerid)) return
  1062. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1063. new Float:x,Float:y,Float:z,Float:a, veh;
  1064. GetPlayerPos(playerid,x,y,z);
  1065. GetPlayerFacingAngle(playerid,a);
  1066. veh = CreateVehicle(575,x+1,y+1,z,a,1,1,10000);
  1067. PutPlayerInVehicle(playerid, veh, 0);
  1068. }
  1069. if(listitem == 2)
  1070. {
  1071. if(IsPlayerInAnyVehicle(playerid)) return
  1072. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1073. new Float:x,Float:y,Float:z,Float:a, veh;
  1074. GetPlayerPos(playerid,x,y,z);
  1075. GetPlayerFacingAngle(playerid,a);
  1076. veh = CreateVehicle(534,x+1,y+1,z,a,1,1,10000);
  1077. PutPlayerInVehicle(playerid, veh, 0);
  1078. }
  1079. if(listitem == 3)
  1080. {
  1081. if(IsPlayerInAnyVehicle(playerid)) return
  1082. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1083. new Float:x,Float:y,Float:z,Float:a, veh;
  1084. GetPlayerPos(playerid,x,y,z);
  1085. GetPlayerFacingAngle(playerid,a);
  1086. veh = CreateVehicle(567,x+1,y+1,z,a,1,1,10000);
  1087. PutPlayerInVehicle(playerid, veh, 0);
  1088. }
  1089. if(listitem == 4)
  1090. {
  1091. if(IsPlayerInAnyVehicle(playerid)) return
  1092. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1093. new Float:x,Float:y,Float:z,Float:a, veh;
  1094. GetPlayerPos(playerid,x,y,z);
  1095. GetPlayerFacingAngle(playerid,a);
  1096. veh = CreateVehicle(535,x+1,y+1,z,a,1,1,10000);
  1097. PutPlayerInVehicle(playerid, veh, 0);
  1098. }
  1099. if(listitem == 5)
  1100. {
  1101. if(IsPlayerInAnyVehicle(playerid)) return
  1102. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1103. new Float:x,Float:y,Float:z,Float:a, veh;
  1104. GetPlayerPos(playerid,x,y,z);
  1105. GetPlayerFacingAngle(playerid,a);
  1106. veh = CreateVehicle(566,x+1,y+1,z,a,1,1,10000);
  1107. PutPlayerInVehicle(playerid, veh, 0);
  1108. }
  1109. if(listitem == 6)
  1110. {
  1111. if(IsPlayerInAnyVehicle(playerid)) return
  1112. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1113. new Float:x,Float:y,Float:z,Float:a, veh;
  1114. GetPlayerPos(playerid,x,y,z);
  1115. GetPlayerFacingAngle(playerid,a);
  1116. veh = CreateVehicle(576,x+1,y+1,z,a,1,1,10000);
  1117. PutPlayerInVehicle(playerid, veh, 0);
  1118. }
  1119. if(listitem == 7)
  1120. {
  1121. if(IsPlayerInAnyVehicle(playerid)) return
  1122. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1123. new Float:x,Float:y,Float:z,Float:a, veh;
  1124. GetPlayerPos(playerid,x,y,z);
  1125. GetPlayerFacingAngle(playerid,a);
  1126. veh = CreateVehicle(412,x+1,y+1,z,a,1,1,10000);
  1127. PutPlayerInVehicle(playerid, veh, 0);
  1128. }
  1129. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  1130. {
  1131. DestroyVehicle(curveh[playerid]);
  1132. }
  1133. curveh[playerid] = GetPlayerVehicleID(playerid);
  1134. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  1135. }
  1136. else
  1137. {
  1138.  
  1139. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  1140.  
  1141. }
  1142. return 1;
  1143. }
  1144. if(dialogid == 2051)
  1145. {
  1146. if(response)
  1147. {
  1148. if(listitem == 0)
  1149. {
  1150. if(IsPlayerInAnyVehicle(playerid)) return
  1151. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1152. new Float:x,Float:y,Float:z,Float:a, veh;
  1153. GetPlayerPos(playerid,x,y,z);
  1154. GetPlayerFacingAngle(playerid,a);
  1155. veh = CreateVehicle(568,x+1,y+1,z,a,1,1,10000);
  1156. PutPlayerInVehicle(playerid, veh, 0);
  1157. }
  1158. if(listitem == 1)
  1159. {
  1160. if(IsPlayerInAnyVehicle(playerid)) return
  1161. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1162. new Float:x,Float:y,Float:z,Float:a, veh;
  1163. GetPlayerPos(playerid,x,y,z);
  1164. GetPlayerFacingAngle(playerid,a);
  1165. veh = CreateVehicle(424,x+1,y+1,z,a,1,1,10000);
  1166. PutPlayerInVehicle(playerid, veh, 0);
  1167. }
  1168. if(listitem == 2)
  1169. {
  1170. if(IsPlayerInAnyVehicle(playerid)) return
  1171. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1172. new Float:x,Float:y,Float:z,Float:a, veh;
  1173. GetPlayerPos(playerid,x,y,z);
  1174. GetPlayerFacingAngle(playerid,a);
  1175. veh = CreateVehicle(574,x+1,y+1,z,a,1,1,10000);
  1176. PutPlayerInVehicle(playerid, veh, 0);
  1177. }
  1178. if(listitem == 3)
  1179. {
  1180. if(IsPlayerInAnyVehicle(playerid)) return
  1181. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1182. new Float:x,Float:y,Float:z,Float:a, veh;
  1183. GetPlayerPos(playerid,x,y,z);
  1184. GetPlayerFacingAngle(playerid,a);
  1185. veh = CreateVehicle(579,x+1,y+1,z,a,1,1,10000);
  1186. PutPlayerInVehicle(playerid, veh, 0);
  1187. }
  1188. if(listitem == 4)
  1189. {
  1190. if(IsPlayerInAnyVehicle(playerid)) return
  1191. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1192. new Float:x,Float:y,Float:z,Float:a, veh;
  1193. GetPlayerPos(playerid,x,y,z);
  1194. GetPlayerFacingAngle(playerid,a);
  1195. veh = CreateVehicle(400,x+1,y+1,z,a,1,1,10000);
  1196. PutPlayerInVehicle(playerid, veh, 0);
  1197. }
  1198. if(listitem == 5)
  1199. {
  1200. if(IsPlayerInAnyVehicle(playerid)) return
  1201. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1202. new Float:x,Float:y,Float:z,Float:a, veh;
  1203. GetPlayerPos(playerid,x,y,z);
  1204. GetPlayerFacingAngle(playerid,a);
  1205. veh = CreateVehicle(500,x+1,y+1,z,a,1,1,10000);
  1206. PutPlayerInVehicle(playerid, veh, 0);
  1207. }
  1208. if(listitem == 6)
  1209. {
  1210. if(IsPlayerInAnyVehicle(playerid)) return
  1211. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1212. new Float:x,Float:y,Float:z,Float:a, veh;
  1213. GetPlayerPos(playerid,x,y,z);
  1214. GetPlayerFacingAngle(playerid,a);
  1215. veh = CreateVehicle(444,x+1,y+1,z,a,1,1,10000);
  1216. PutPlayerInVehicle(playerid, veh, 0);
  1217. }
  1218. if(listitem == 7)
  1219. {
  1220. if(IsPlayerInAnyVehicle(playerid)) return
  1221. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1222. new Float:x,Float:y,Float:z,Float:a, veh;
  1223. GetPlayerPos(playerid,x,y,z);
  1224. GetPlayerFacingAngle(playerid,a);
  1225. veh = CreateVehicle(556,x+1,y+1,z,a,1,1,10000);
  1226. PutPlayerInVehicle(playerid, veh, 0);
  1227. }
  1228. if(listitem == 8)
  1229. {
  1230. if(IsPlayerInAnyVehicle(playerid)) return
  1231. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1232. new Float:x,Float:y,Float:z,Float:a, veh;
  1233. GetPlayerPos(playerid,x,y,z);
  1234. GetPlayerFacingAngle(playerid,a);
  1235. veh = CreateVehicle(557,x+1,y+1,z,a,1,1,10000);
  1236. PutPlayerInVehicle(playerid, veh, 0);
  1237. }
  1238. if(listitem == 9)
  1239. {
  1240. if(IsPlayerInAnyVehicle(playerid)) return
  1241. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1242. new Float:x,Float:y,Float:z,Float:a, veh;
  1243. GetPlayerPos(playerid,x,y,z);
  1244. GetPlayerFacingAngle(playerid,a);
  1245. veh = CreateVehicle(470,x+1,y+1,z,a,1,1,10000);
  1246. PutPlayerInVehicle(playerid, veh, 0);
  1247. }
  1248. if(listitem == 10)
  1249. {
  1250. if(IsPlayerInAnyVehicle(playerid)) return
  1251. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1252. new Float:x,Float:y,Float:z,Float:a, veh;
  1253. GetPlayerPos(playerid,x,y,z);
  1254. GetPlayerFacingAngle(playerid,a);
  1255. veh = CreateVehicle(489,x+1,y+1,z,a,1,1,10000);
  1256. PutPlayerInVehicle(playerid, veh, 0);
  1257. }
  1258. if(listitem == 11)
  1259. {
  1260. if(IsPlayerInAnyVehicle(playerid)) return
  1261. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1262. new Float:x,Float:y,Float:z,Float:a, veh;
  1263. GetPlayerPos(playerid,x,y,z);
  1264. GetPlayerFacingAngle(playerid,a);
  1265. veh = CreateVehicle(505,x+1,y+1,z,a,1,1,10000);
  1266. PutPlayerInVehicle(playerid, veh, 0);
  1267. }
  1268. if(listitem == 12)
  1269. {
  1270. if(IsPlayerInAnyVehicle(playerid)) return
  1271. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1272. new Float:x,Float:y,Float:z,Float:a, veh;
  1273. GetPlayerPos(playerid,x,y,z);
  1274. GetPlayerFacingAngle(playerid,a);
  1275. veh = CreateVehicle(495,x+1,y+1,z,a,1,1,10000);
  1276. PutPlayerInVehicle(playerid, veh, 0);
  1277. }
  1278. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  1279. {
  1280. DestroyVehicle(curveh[playerid]);
  1281. }
  1282. curveh[playerid] = GetPlayerVehicleID(playerid);
  1283. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  1284. }
  1285. else
  1286. {
  1287.  
  1288. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  1289.  
  1290. }
  1291. return 1;
  1292. }
  1293. if(dialogid == 2052)
  1294. {
  1295. if(response)
  1296. {
  1297. if(listitem == 0)
  1298. {
  1299. if(IsPlayerInAnyVehicle(playerid)) return
  1300. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1301. new Float:x,Float:y,Float:z,Float:a, veh;
  1302. GetPlayerPos(playerid,x,y,z);
  1303. GetPlayerFacingAngle(playerid,a);
  1304. veh = CreateVehicle(416,x+1,y+1,z,a,1,1,10000);
  1305. PutPlayerInVehicle(playerid, veh, 0);
  1306. }
  1307. if(listitem == 1)
  1308. {
  1309. if(IsPlayerInAnyVehicle(playerid)) return
  1310. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1311. new Float:x,Float:y,Float:z,Float:a, veh;
  1312. GetPlayerPos(playerid,x,y,z);
  1313. GetPlayerFacingAngle(playerid,a);
  1314. veh = CreateVehicle(433,x+1,y+1,z,a,1,1,10000);
  1315. PutPlayerInVehicle(playerid, veh, 0);
  1316. }
  1317. if(listitem == 2)
  1318. {
  1319. if(IsPlayerInAnyVehicle(playerid)) return
  1320. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1321. new Float:x,Float:y,Float:z,Float:a, veh;
  1322. GetPlayerPos(playerid,x,y,z);
  1323. GetPlayerFacingAngle(playerid,a);
  1324. veh = CreateVehicle(431,x+1,y+1,z,a,1,1,10000);
  1325. PutPlayerInVehicle(playerid, veh, 0);
  1326. }
  1327. if(listitem == 3)
  1328. {
  1329. if(IsPlayerInAnyVehicle(playerid)) return
  1330. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1331. new Float:x,Float:y,Float:z,Float:a, veh;
  1332. GetPlayerPos(playerid,x,y,z);
  1333. GetPlayerFacingAngle(playerid,a);
  1334. veh = CreateVehicle(438,x+1,y+1,z,a,1,1,10000);
  1335. PutPlayerInVehicle(playerid, veh, 0);
  1336. }
  1337. if(listitem == 4)
  1338. {
  1339. if(IsPlayerInAnyVehicle(playerid)) return
  1340. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1341. new Float:x,Float:y,Float:z,Float:a, veh;
  1342. GetPlayerPos(playerid,x,y,z);
  1343. GetPlayerFacingAngle(playerid,a);
  1344. veh = CreateVehicle(437,x+1,y+1,z,a,1,1,10000);
  1345. PutPlayerInVehicle(playerid, veh, 0);
  1346. }
  1347. if(listitem == 5)
  1348. {
  1349. if(IsPlayerInAnyVehicle(playerid)) return
  1350. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1351. new Float:x,Float:y,Float:z,Float:a, veh;
  1352. GetPlayerPos(playerid,x,y,z);
  1353. GetPlayerFacingAngle(playerid,a);
  1354. veh = CreateVehicle(523,x+1,y+1,z,a,1,1,10000);
  1355. PutPlayerInVehicle(playerid, veh, 0);
  1356. }
  1357. if(listitem == 6)
  1358. {
  1359. if(IsPlayerInAnyVehicle(playerid)) return
  1360. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1361. new Float:x,Float:y,Float:z,Float:a, veh;
  1362. GetPlayerPos(playerid,x,y,z);
  1363. GetPlayerFacingAngle(playerid,a);
  1364. veh = CreateVehicle(427,x+1,y+1,z,a,1,1,10000);
  1365. PutPlayerInVehicle(playerid, veh, 0);
  1366. }
  1367. if(listitem == 7)
  1368. {
  1369. if(IsPlayerInAnyVehicle(playerid)) return
  1370. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1371. new Float:x,Float:y,Float:z,Float:a, veh;
  1372. GetPlayerPos(playerid,x,y,z);
  1373. GetPlayerFacingAngle(playerid,a);
  1374. veh = CreateVehicle(490,x+1,y+1,z,a,1,1,10000);
  1375. PutPlayerInVehicle(playerid, veh, 0);
  1376. }
  1377. if(listitem == 8)
  1378. {
  1379. if(IsPlayerInAnyVehicle(playerid)) return
  1380. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1381. new Float:x,Float:y,Float:z,Float:a, veh;
  1382. GetPlayerPos(playerid,x,y,z);
  1383. GetPlayerFacingAngle(playerid,a);
  1384. veh = CreateVehicle(528,x+1,y+1,z,a,1,1,10000);
  1385. PutPlayerInVehicle(playerid, veh, 0);
  1386. }
  1387. if(listitem == 9)
  1388. {
  1389. if(IsPlayerInAnyVehicle(playerid)) return
  1390. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1391. new Float:x,Float:y,Float:z,Float:a, veh;
  1392. GetPlayerPos(playerid,x,y,z);
  1393. GetPlayerFacingAngle(playerid,a);
  1394. veh = CreateVehicle(407,x+1,y+1,z,a,1,1,10000);
  1395. PutPlayerInVehicle(playerid, veh, 0);
  1396. }
  1397. if(listitem == 10)
  1398. {
  1399. if(IsPlayerInAnyVehicle(playerid)) return
  1400. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1401. new Float:x,Float:y,Float:z,Float:a, veh;
  1402. GetPlayerPos(playerid,x,y,z);
  1403. GetPlayerFacingAngle(playerid,a);
  1404. veh = CreateVehicle(544,x+1,y+1,z,a,1,1,10000);
  1405. PutPlayerInVehicle(playerid, veh, 0);
  1406. }
  1407. if(listitem == 11)
  1408. {
  1409. if(IsPlayerInAnyVehicle(playerid)) return
  1410. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1411. new Float:x,Float:y,Float:z,Float:a, veh;
  1412. GetPlayerPos(playerid,x,y,z);
  1413. GetPlayerFacingAngle(playerid,a);
  1414. veh = CreateVehicle(596,x+1,y+1,z,a,1,1,10000);
  1415. PutPlayerInVehicle(playerid, veh, 0);
  1416. }
  1417. if(listitem == 12)
  1418. {
  1419. if(IsPlayerInAnyVehicle(playerid)) return
  1420. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1421. new Float:x,Float:y,Float:z,Float:a, veh;
  1422. GetPlayerPos(playerid,x,y,z);
  1423. GetPlayerFacingAngle(playerid,a);
  1424. veh = CreateVehicle(598,x+1,y+1,z,a,1,1,10000);
  1425. PutPlayerInVehicle(playerid, veh, 0);
  1426. }
  1427. if(listitem == 13)
  1428. {
  1429. if(IsPlayerInAnyVehicle(playerid)) return
  1430. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1431. new Float:x,Float:y,Float:z,Float:a, veh;
  1432. GetPlayerPos(playerid,x,y,z);
  1433. GetPlayerFacingAngle(playerid,a);
  1434. veh = CreateVehicle(597,x+1,y+1,z,a,1,1,10000);
  1435. PutPlayerInVehicle(playerid, veh, 0);
  1436. }
  1437. if(listitem == 14)
  1438. {
  1439. if(IsPlayerInAnyVehicle(playerid)) return
  1440. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1441. new Float:x,Float:y,Float:z,Float:a, veh;
  1442. GetPlayerPos(playerid,x,y,z);
  1443. GetPlayerFacingAngle(playerid,a);
  1444. veh = CreateVehicle(599,x+1,y+1,z,a,1,1,10000);
  1445. PutPlayerInVehicle(playerid, veh, 0);
  1446. }
  1447. if(listitem == 15)
  1448. {
  1449. if(IsPlayerInAnyVehicle(playerid)) return
  1450. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1451. new Float:x,Float:y,Float:z,Float:a, veh;
  1452. GetPlayerPos(playerid,x,y,z);
  1453. GetPlayerFacingAngle(playerid,a);
  1454. veh = CreateVehicle(432,x+1,y+1,z,a,1,1,10000);
  1455. PutPlayerInVehicle(playerid, veh, 0);
  1456. }
  1457. if(listitem == 16)
  1458. {
  1459. if(IsPlayerInAnyVehicle(playerid)) return
  1460. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1461. new Float:x,Float:y,Float:z,Float:a, veh;
  1462. GetPlayerPos(playerid,x,y,z);
  1463. GetPlayerFacingAngle(playerid,a);
  1464. veh = CreateVehicle(601,x+1,y+1,z,a,1,1,10000);
  1465. PutPlayerInVehicle(playerid, veh, 0);
  1466. }
  1467. if(listitem == 17)
  1468. {
  1469. if(IsPlayerInAnyVehicle(playerid)) return
  1470. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1471. new Float:x,Float:y,Float:z,Float:a, veh;
  1472. GetPlayerPos(playerid,x,y,z);
  1473. GetPlayerFacingAngle(playerid,a);
  1474. veh = CreateVehicle(420,x+1,y+1,z,a,1,1,10000);
  1475. PutPlayerInVehicle(playerid, veh, 0);
  1476. }
  1477. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  1478. {
  1479. DestroyVehicle(curveh[playerid]);
  1480. }
  1481. curveh[playerid] = GetPlayerVehicleID(playerid);
  1482. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  1483. }
  1484. else
  1485. {
  1486.  
  1487. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  1488.  
  1489. }
  1490. return 1;
  1491. }
  1492. if(dialogid == 2053)
  1493. {
  1494. if(response)
  1495. {
  1496. if(listitem == 0)
  1497. {
  1498. if(IsPlayerInAnyVehicle(playerid)) return
  1499. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1500. new Float:x,Float:y,Float:z,Float:a, veh;
  1501. GetPlayerPos(playerid,x,y,z);
  1502. GetPlayerFacingAngle(playerid,a);
  1503. veh = CreateVehicle(445,x+1,y+1,z,a,1,1,10000);
  1504. PutPlayerInVehicle(playerid, veh, 0);
  1505. }
  1506. if(listitem == 1)
  1507. {
  1508. if(IsPlayerInAnyVehicle(playerid)) return
  1509. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1510. new Float:x,Float:y,Float:z,Float:a, veh;
  1511. GetPlayerPos(playerid,x,y,z);
  1512. GetPlayerFacingAngle(playerid,a);
  1513. veh = CreateVehicle(504,x+1,y+1,z,a,1,1,10000);
  1514. PutPlayerInVehicle(playerid, veh, 0);
  1515. }
  1516. if(listitem == 2)
  1517. {
  1518. if(IsPlayerInAnyVehicle(playerid)) return
  1519. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1520. new Float:x,Float:y,Float:z,Float:a, veh;
  1521. GetPlayerPos(playerid,x,y,z);
  1522. GetPlayerFacingAngle(playerid,a);
  1523. veh = CreateVehicle(401,x+1,y+1,z,a,1,1,10000);
  1524. PutPlayerInVehicle(playerid, veh, 0);
  1525. }
  1526. if(listitem == 3)
  1527. {
  1528. if(IsPlayerInAnyVehicle(playerid)) return
  1529. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1530. new Float:x,Float:y,Float:z,Float:a, veh;
  1531. GetPlayerPos(playerid,x,y,z);
  1532. GetPlayerFacingAngle(playerid,a);
  1533. veh = CreateVehicle(518,x+1,y+1,z,a,1,1,10000);
  1534. PutPlayerInVehicle(playerid, veh, 0);
  1535. }
  1536. if(listitem == 4)
  1537. {
  1538. if(IsPlayerInAnyVehicle(playerid)) return
  1539. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1540. new Float:x,Float:y,Float:z,Float:a, veh;
  1541. GetPlayerPos(playerid,x,y,z);
  1542. GetPlayerFacingAngle(playerid,a);
  1543. veh = CreateVehicle(527,x+1,y+1,z,a,1,1,10000);
  1544. PutPlayerInVehicle(playerid, veh, 0);
  1545. }
  1546. if(listitem == 5)
  1547. {
  1548. if(IsPlayerInAnyVehicle(playerid)) return
  1549. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1550. new Float:x,Float:y,Float:z,Float:a, veh;
  1551. GetPlayerPos(playerid,x,y,z);
  1552. GetPlayerFacingAngle(playerid,a);
  1553. veh = CreateVehicle(542,x+1,y+1,z,a,1,1,10000);
  1554. PutPlayerInVehicle(playerid, veh, 0);
  1555. }
  1556. if(listitem == 6)
  1557. {
  1558. if(IsPlayerInAnyVehicle(playerid)) return
  1559. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1560. new Float:x,Float:y,Float:z,Float:a, veh;
  1561. GetPlayerPos(playerid,x,y,z);
  1562. GetPlayerFacingAngle(playerid,a);
  1563. veh = CreateVehicle(507,x+1,y+1,z,a,1,1,10000);
  1564. PutPlayerInVehicle(playerid, veh, 0);
  1565. }
  1566. if(listitem == 7)
  1567. {
  1568. if(IsPlayerInAnyVehicle(playerid)) return
  1569. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1570. new Float:x,Float:y,Float:z,Float:a, veh;
  1571. GetPlayerPos(playerid,x,y,z);
  1572. GetPlayerFacingAngle(playerid,a);
  1573. veh = CreateVehicle(562,x+1,y+1,z,a,1,1,10000);
  1574. PutPlayerInVehicle(playerid, veh, 0);
  1575. }
  1576. if(listitem == 8)
  1577. {
  1578. if(IsPlayerInAnyVehicle(playerid)) return
  1579. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1580. new Float:x,Float:y,Float:z,Float:a, veh;
  1581. GetPlayerPos(playerid,x,y,z);
  1582. GetPlayerFacingAngle(playerid,a);
  1583. veh = CreateVehicle(585,x+1,y+1,z,a,1,1,10000);
  1584. PutPlayerInVehicle(playerid, veh, 0);
  1585. }
  1586. if(listitem == 9)
  1587. {
  1588. if(IsPlayerInAnyVehicle(playerid)) return
  1589. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1590. new Float:x,Float:y,Float:z,Float:a, veh;
  1591. GetPlayerPos(playerid,x,y,z);
  1592. GetPlayerFacingAngle(playerid,a);
  1593. veh = CreateVehicle(419,x+1,y+1,z,a,1,1,10000);
  1594. PutPlayerInVehicle(playerid, veh, 0);
  1595. }
  1596. if(listitem == 10)
  1597. {
  1598. if(IsPlayerInAnyVehicle(playerid)) return
  1599. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1600. new Float:x,Float:y,Float:z,Float:a, veh;
  1601. GetPlayerPos(playerid,x,y,z);
  1602. GetPlayerFacingAngle(playerid,a);
  1603. veh = CreateVehicle(526,x+1,y+1,z,a,1,1,10000);
  1604. PutPlayerInVehicle(playerid, veh, 0);
  1605. }
  1606. if(listitem == 11)
  1607. {
  1608. if(IsPlayerInAnyVehicle(playerid)) return
  1609. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1610. new Float:x,Float:y,Float:z,Float:a, veh;
  1611. GetPlayerPos(playerid,x,y,z);
  1612. GetPlayerFacingAngle(playerid,a);
  1613. veh = CreateVehicle(604,x+1,y+1,z,a,1,1,10000);
  1614. PutPlayerInVehicle(playerid, veh, 0);
  1615. }
  1616. if(listitem == 12)
  1617. {
  1618. if(IsPlayerInAnyVehicle(playerid)) return
  1619. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1620. new Float:x,Float:y,Float:z,Float:a, veh;
  1621. GetPlayerPos(playerid,x,y,z);
  1622. GetPlayerFacingAngle(playerid,a);
  1623. veh = CreateVehicle(466,x+1,y+1,z,a,1,1,10000);
  1624. PutPlayerInVehicle(playerid, veh, 0);
  1625. }
  1626. if(listitem == 13)
  1627. {
  1628. if(IsPlayerInAnyVehicle(playerid)) return
  1629. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1630. new Float:x,Float:y,Float:z,Float:a, veh;
  1631. GetPlayerPos(playerid,x,y,z);
  1632. GetPlayerFacingAngle(playerid,a);
  1633. veh = CreateVehicle(492,x+1,y+1,z,a,1,1,10000);
  1634. PutPlayerInVehicle(playerid, veh, 0);
  1635. }
  1636. if(listitem == 14)
  1637. {
  1638. if(IsPlayerInAnyVehicle(playerid)) return
  1639. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1640. new Float:x,Float:y,Float:z,Float:a, veh;
  1641. GetPlayerPos(playerid,x,y,z);
  1642. GetPlayerFacingAngle(playerid,a);
  1643. veh = CreateVehicle(474,x+1,y+1,z,a,1,1,10000);
  1644. PutPlayerInVehicle(playerid, veh, 0);
  1645. }
  1646. if(listitem == 15)
  1647. {
  1648. if(IsPlayerInAnyVehicle(playerid)) return
  1649. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1650. new Float:x,Float:y,Float:z,Float:a, veh;
  1651. GetPlayerPos(playerid,x,y,z);
  1652. GetPlayerFacingAngle(playerid,a);
  1653. veh = CreateVehicle(546,x+1,y+1,z,a,1,1,10000);
  1654. PutPlayerInVehicle(playerid, veh, 0);
  1655. }
  1656. if(listitem == 16)
  1657. {
  1658. if(IsPlayerInAnyVehicle(playerid)) return
  1659. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1660. new Float:x,Float:y,Float:z,Float:a, veh;
  1661. GetPlayerPos(playerid,x,y,z);
  1662. GetPlayerFacingAngle(playerid,a);
  1663. veh = CreateVehicle(517,x+1,y+1,z,a,1,1,10000);
  1664. PutPlayerInVehicle(playerid, veh, 0);
  1665. }
  1666. if(listitem == 17)
  1667. {
  1668. if(IsPlayerInAnyVehicle(playerid)) return
  1669. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1670. new Float:x,Float:y,Float:z,Float:a, veh;
  1671. GetPlayerPos(playerid,x,y,z);
  1672. GetPlayerFacingAngle(playerid,a);
  1673. veh = CreateVehicle(410,x+1,y+1,z,a,1,1,10000);
  1674. PutPlayerInVehicle(playerid, veh, 0);
  1675. }
  1676. if(listitem == 18)
  1677. {
  1678. if(IsPlayerInAnyVehicle(playerid)) return
  1679. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1680. new Float:x,Float:y,Float:z,Float:a, veh;
  1681. GetPlayerPos(playerid,x,y,z);
  1682. GetPlayerFacingAngle(playerid,a);
  1683. veh = CreateVehicle(551,x+1,y+1,z,a,1,1,10000);
  1684. PutPlayerInVehicle(playerid, veh, 0);
  1685. }
  1686. if(listitem == 19)
  1687. {
  1688. if(IsPlayerInAnyVehicle(playerid)) return
  1689. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1690. new Float:x,Float:y,Float:z,Float:a, veh;
  1691. GetPlayerPos(playerid,x,y,z);
  1692. GetPlayerFacingAngle(playerid,a);
  1693. veh = CreateVehicle(516,x+1,y+1,z,a,1,1,10000);
  1694. PutPlayerInVehicle(playerid, veh, 0);
  1695. }
  1696. if(listitem == 20)
  1697. {
  1698. if(IsPlayerInAnyVehicle(playerid)) return
  1699. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1700. new Float:x,Float:y,Float:z,Float:a, veh;
  1701. GetPlayerPos(playerid,x,y,z);
  1702. GetPlayerFacingAngle(playerid,a);
  1703. veh = CreateVehicle(467,x+1,y+1,z,a,1,1,10000);
  1704. PutPlayerInVehicle(playerid, veh, 0);
  1705. }
  1706. if(listitem == 21)
  1707. {
  1708. if(IsPlayerInAnyVehicle(playerid)) return
  1709. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1710. new Float:x,Float:y,Float:z,Float:a, veh;
  1711. GetPlayerPos(playerid,x,y,z);
  1712. GetPlayerFacingAngle(playerid,a);
  1713. veh = CreateVehicle(426,x+1,y+1,z,a,1,1,10000);
  1714. PutPlayerInVehicle(playerid, veh, 0);
  1715. }
  1716. if(listitem == 22)
  1717. {
  1718. if(IsPlayerInAnyVehicle(playerid)) return
  1719. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1720. new Float:x,Float:y,Float:z,Float:a, veh;
  1721. GetPlayerPos(playerid,x,y,z);
  1722. GetPlayerFacingAngle(playerid,a);
  1723. veh = CreateVehicle(436,x+1,y+1,z,a,1,1,10000);
  1724. PutPlayerInVehicle(playerid, veh, 0);
  1725. }
  1726. if(listitem == 23)
  1727. {
  1728. if(IsPlayerInAnyVehicle(playerid)) return
  1729. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1730. new Float:x,Float:y,Float:z,Float:a, veh;
  1731. GetPlayerPos(playerid,x,y,z);
  1732. GetPlayerFacingAngle(playerid,a);
  1733. veh = CreateVehicle(547,x+1,y+1,z,a,1,1,10000);
  1734. PutPlayerInVehicle(playerid, veh, 0);
  1735. }
  1736. if(listitem == 24)
  1737. {
  1738. if(IsPlayerInAnyVehicle(playerid)) return
  1739. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1740. new Float:x,Float:y,Float:z,Float:a, veh;
  1741. GetPlayerPos(playerid,x,y,z);
  1742. GetPlayerFacingAngle(playerid,a);
  1743. veh = CreateVehicle(405,x+1,y+1,z,a,1,1,10000);
  1744. PutPlayerInVehicle(playerid, veh, 0);
  1745. }
  1746. if(listitem == 25)
  1747. {
  1748. if(IsPlayerInAnyVehicle(playerid)) return
  1749. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1750. new Float:x,Float:y,Float:z,Float:a, veh;
  1751. GetPlayerPos(playerid,x,y,z);
  1752. GetPlayerFacingAngle(playerid,a);
  1753. veh = CreateVehicle(580,x+1,y+1,z,a,1,1,10000);
  1754. PutPlayerInVehicle(playerid, veh, 0);
  1755. }
  1756. if(listitem == 26)
  1757. {
  1758. if(IsPlayerInAnyVehicle(playerid)) return
  1759. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1760. new Float:x,Float:y,Float:z,Float:a, veh;
  1761. GetPlayerPos(playerid,x,y,z);
  1762. GetPlayerFacingAngle(playerid,a);
  1763. veh = CreateVehicle(560,x+1,y+1,z,a,1,1,10000);
  1764. PutPlayerInVehicle(playerid, veh, 0);
  1765. }
  1766. if(listitem == 27)
  1767. {
  1768. if(IsPlayerInAnyVehicle(playerid)) return
  1769. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1770. new Float:x,Float:y,Float:z,Float:a, veh;
  1771. GetPlayerPos(playerid,x,y,z);
  1772. GetPlayerFacingAngle(playerid,a);
  1773. veh = CreateVehicle(550,x+1,y+1,z,a,1,1,10000);
  1774. PutPlayerInVehicle(playerid, veh, 0);
  1775. }
  1776. if(listitem == 28)
  1777. {
  1778. if(IsPlayerInAnyVehicle(playerid)) return
  1779. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1780. new Float:x,Float:y,Float:z,Float:a, veh;
  1781. GetPlayerPos(playerid,x,y,z);
  1782. GetPlayerFacingAngle(playerid,a);
  1783. veh = CreateVehicle(549,x+1,y+1,z,a,1,1,10000);
  1784. PutPlayerInVehicle(playerid, veh, 0);
  1785. }
  1786. if(listitem == 29)
  1787. {
  1788. if(IsPlayerInAnyVehicle(playerid)) return
  1789. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1790. new Float:x,Float:y,Float:z,Float:a, veh;
  1791. GetPlayerPos(playerid,x,y,z);
  1792. GetPlayerFacingAngle(playerid,a);
  1793. veh = CreateVehicle(540,x+1,y+1,z,a,1,1,10000);
  1794. PutPlayerInVehicle(playerid, veh, 0);
  1795. }
  1796. if(listitem == 30)
  1797. {
  1798. if(IsPlayerInAnyVehicle(playerid)) return
  1799. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1800. new Float:x,Float:y,Float:z,Float:a, veh;
  1801. GetPlayerPos(playerid,x,y,z);
  1802. GetPlayerFacingAngle(playerid,a);
  1803. veh = CreateVehicle(491,x+1,y+1,z,a,1,1,10000);
  1804. PutPlayerInVehicle(playerid, veh, 0);
  1805. }
  1806. if(listitem == 31)
  1807. {
  1808. if(IsPlayerInAnyVehicle(playerid)) return
  1809. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1810. new Float:x,Float:y,Float:z,Float:a, veh;
  1811. GetPlayerPos(playerid,x,y,z);
  1812. GetPlayerFacingAngle(playerid,a);
  1813. veh = CreateVehicle(529,x+1,y+1,z,a,1,1,10000);
  1814. PutPlayerInVehicle(playerid, veh, 0);
  1815. }
  1816. if(listitem == 32)
  1817. {
  1818. if(IsPlayerInAnyVehicle(playerid)) return
  1819. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1820. new Float:x,Float:y,Float:z,Float:a, veh;
  1821. GetPlayerPos(playerid,x,y,z);
  1822. GetPlayerFacingAngle(playerid,a);
  1823. veh = CreateVehicle(421,x+1,y+1,z,a,1,1,10000);
  1824. PutPlayerInVehicle(playerid, veh, 0);
  1825. }
  1826. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  1827. {
  1828. DestroyVehicle(curveh[playerid]);
  1829. }
  1830. curveh[playerid] = GetPlayerVehicleID(playerid);
  1831. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  1832. }
  1833. else
  1834. {
  1835.  
  1836. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  1837.  
  1838. }
  1839. return 1;
  1840. }
  1841. if(dialogid == 2054)
  1842. {
  1843. if(response)
  1844. {
  1845. if(listitem == 0)
  1846. {
  1847. if(IsPlayerInAnyVehicle(playerid)) return
  1848. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1849. new Float:x,Float:y,Float:z,Float:a, veh;
  1850. GetPlayerPos(playerid,x,y,z);
  1851. GetPlayerFacingAngle(playerid,a);
  1852. veh = CreateVehicle(602,x+1,y+1,z,a,1,1,10000);
  1853. PutPlayerInVehicle(playerid, veh, 0);
  1854. }
  1855. if(listitem == 1)
  1856. {
  1857. if(IsPlayerInAnyVehicle(playerid)) return
  1858. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1859. new Float:x,Float:y,Float:z,Float:a, veh;
  1860. GetPlayerPos(playerid,x,y,z);
  1861. GetPlayerFacingAngle(playerid,a);
  1862. veh = CreateVehicle(429,x+1,y+1,z,a,1,1,10000);
  1863. PutPlayerInVehicle(playerid, veh, 0);
  1864. }
  1865. if(listitem == 2)
  1866. {
  1867. if(IsPlayerInAnyVehicle(playerid)) return
  1868. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1869. new Float:x,Float:y,Float:z,Float:a, veh;
  1870. GetPlayerPos(playerid,x,y,z);
  1871. GetPlayerFacingAngle(playerid,a);
  1872. veh = CreateVehicle(496,x+1,y+1,z,a,1,1,10000);
  1873. PutPlayerInVehicle(playerid, veh, 0);
  1874. }
  1875. if(listitem == 3)
  1876. {
  1877. if(IsPlayerInAnyVehicle(playerid)) return
  1878. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1879. new Float:x,Float:y,Float:z,Float:a, veh;
  1880. GetPlayerPos(playerid,x,y,z);
  1881. GetPlayerFacingAngle(playerid,a);
  1882. veh = CreateVehicle(402,x+1,y+1,z,a,1,1,10000);
  1883. PutPlayerInVehicle(playerid, veh, 0);
  1884. }
  1885. if(listitem == 4)
  1886. {
  1887. if(IsPlayerInAnyVehicle(playerid)) return
  1888. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1889. new Float:x,Float:y,Float:z,Float:a, veh;
  1890. GetPlayerPos(playerid,x,y,z);
  1891. GetPlayerFacingAngle(playerid,a);
  1892. veh = CreateVehicle(541,x+1,y+1,z,a,1,1,10000);
  1893. PutPlayerInVehicle(playerid, veh, 0);
  1894. }
  1895. if(listitem == 5)
  1896. {
  1897. if(IsPlayerInAnyVehicle(playerid)) return
  1898. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1899. new Float:x,Float:y,Float:z,Float:a, veh;
  1900. GetPlayerPos(playerid,x,y,z);
  1901. GetPlayerFacingAngle(playerid,a);
  1902. veh = CreateVehicle(415,x+1,y+1,z,a,1,1,10000);
  1903. PutPlayerInVehicle(playerid, veh, 0);
  1904. }
  1905. if(listitem == 6)
  1906. {
  1907. if(IsPlayerInAnyVehicle(playerid)) return
  1908. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1909. new Float:x,Float:y,Float:z,Float:a, veh;
  1910. GetPlayerPos(playerid,x,y,z);
  1911. GetPlayerFacingAngle(playerid,a);
  1912. veh = CreateVehicle(589,x+1,y+1,z,a,1,1,10000);
  1913. PutPlayerInVehicle(playerid, veh, 0);
  1914. }
  1915. if(listitem == 7)
  1916. {
  1917. if(IsPlayerInAnyVehicle(playerid)) return
  1918. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1919. new Float:x,Float:y,Float:z,Float:a, veh;
  1920. GetPlayerPos(playerid,x,y,z);
  1921. GetPlayerFacingAngle(playerid,a);
  1922. veh = CreateVehicle(587,x+1,y+1,z,a,1,1,10000);
  1923. PutPlayerInVehicle(playerid, veh, 0);
  1924. }
  1925. if(listitem == 8)
  1926. {
  1927. if(IsPlayerInAnyVehicle(playerid)) return
  1928. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1929. new Float:x,Float:y,Float:z,Float:a, veh;
  1930. GetPlayerPos(playerid,x,y,z);
  1931. GetPlayerFacingAngle(playerid,a);
  1932. veh = CreateVehicle(565,x+1,y+1,z,a,1,1,10000);
  1933. PutPlayerInVehicle(playerid, veh, 0);
  1934. }
  1935. if(listitem == 9)
  1936. {
  1937. if(IsPlayerInAnyVehicle(playerid)) return
  1938. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1939. new Float:x,Float:y,Float:z,Float:a, veh;
  1940. GetPlayerPos(playerid,x,y,z);
  1941. GetPlayerFacingAngle(playerid,a);
  1942. veh = CreateVehicle(494,x+1,y+1,z,a,1,1,10000);
  1943. PutPlayerInVehicle(playerid, veh, 0);
  1944. }
  1945. if(listitem == 10)
  1946. {
  1947. if(IsPlayerInAnyVehicle(playerid)) return
  1948. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1949. new Float:x,Float:y,Float:z,Float:a, veh;
  1950. GetPlayerPos(playerid,x,y,z);
  1951. GetPlayerFacingAngle(playerid,a);
  1952. veh = CreateVehicle(502,x+1,y+1,z,a,1,1,10000);
  1953. PutPlayerInVehicle(playerid, veh, 0);
  1954. }
  1955. if(listitem == 11)
  1956. {
  1957. if(IsPlayerInAnyVehicle(playerid)) return
  1958. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1959. new Float:x,Float:y,Float:z,Float:a, veh;
  1960. GetPlayerPos(playerid,x,y,z);
  1961. GetPlayerFacingAngle(playerid,a);
  1962. veh = CreateVehicle(503,x+1,y+1,z,a,1,1,10000);
  1963. PutPlayerInVehicle(playerid, veh, 0);
  1964. }
  1965. if(listitem == 12)
  1966. {
  1967. if(IsPlayerInAnyVehicle(playerid)) return
  1968. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1969. new Float:x,Float:y,Float:z,Float:a, veh;
  1970. GetPlayerPos(playerid,x,y,z);
  1971. GetPlayerFacingAngle(playerid,a);
  1972. veh = CreateVehicle(411,x+1,y+1,z,a,1,1,10000);
  1973. PutPlayerInVehicle(playerid, veh, 0);
  1974. }
  1975. if(listitem == 13)
  1976. {
  1977. if(IsPlayerInAnyVehicle(playerid)) return
  1978. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1979. new Float:x,Float:y,Float:z,Float:a, veh;
  1980. GetPlayerPos(playerid,x,y,z);
  1981. GetPlayerFacingAngle(playerid,a);
  1982. veh = CreateVehicle(559,x+1,y+1,z,a,1,1,10000);
  1983. PutPlayerInVehicle(playerid, veh, 0);
  1984. }
  1985. if(listitem == 14)
  1986. {
  1987. if(IsPlayerInAnyVehicle(playerid)) return
  1988. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1989. new Float:x,Float:y,Float:z,Float:a, veh;
  1990. GetPlayerPos(playerid,x,y,z);
  1991. GetPlayerFacingAngle(playerid,a);
  1992. veh = CreateVehicle(603,x+1,y+1,z,a,1,1,10000);
  1993. PutPlayerInVehicle(playerid, veh, 0);
  1994. }
  1995. if(listitem == 15)
  1996. {
  1997. if(IsPlayerInAnyVehicle(playerid)) return
  1998. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  1999. new Float:x,Float:y,Float:z,Float:a, veh;
  2000. GetPlayerPos(playerid,x,y,z);
  2001. GetPlayerFacingAngle(playerid,a);
  2002. veh = CreateVehicle(475,x+1,y+1,z,a,1,1,10000);
  2003. PutPlayerInVehicle(playerid, veh, 0);
  2004. }
  2005. if(listitem == 16)
  2006. {
  2007. if(IsPlayerInAnyVehicle(playerid)) return
  2008. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2009. new Float:x,Float:y,Float:z,Float:a, veh;
  2010. GetPlayerPos(playerid,x,y,z);
  2011. GetPlayerFacingAngle(playerid,a);
  2012. veh = CreateVehicle(506,x+1,y+1,z,a,1,1,10000);
  2013. PutPlayerInVehicle(playerid, veh, 0);
  2014. }
  2015. if(listitem == 17)
  2016. {
  2017. if(IsPlayerInAnyVehicle(playerid)) return
  2018. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2019. new Float:x,Float:y,Float:z,Float:a, veh;
  2020. GetPlayerPos(playerid,x,y,z);
  2021. GetPlayerFacingAngle(playerid,a);
  2022. veh = CreateVehicle(451,x+1,y+1,z,a,1,1,10000);
  2023. PutPlayerInVehicle(playerid, veh, 0);
  2024. }
  2025. if(listitem == 18)
  2026. {
  2027. if(IsPlayerInAnyVehicle(playerid)) return
  2028. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2029. new Float:x,Float:y,Float:z,Float:a, veh;
  2030. GetPlayerPos(playerid,x,y,z);
  2031. GetPlayerFacingAngle(playerid,a);
  2032. veh = CreateVehicle(558,x+1,y+1,z,a,1,1,10000);
  2033. PutPlayerInVehicle(playerid, veh, 0);
  2034. }
  2035. if(listitem == 19)
  2036. {
  2037. if(IsPlayerInAnyVehicle(playerid)) return
  2038. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2039. new Float:x,Float:y,Float:z,Float:a, veh;
  2040. GetPlayerPos(playerid,x,y,z);
  2041. GetPlayerFacingAngle(playerid,a);
  2042. veh = CreateVehicle(477,x+1,y+1,z,a,1,1,10000);
  2043. PutPlayerInVehicle(playerid, veh, 0);
  2044. }
  2045. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  2046. {
  2047. DestroyVehicle(curveh[playerid]);
  2048. }
  2049. curveh[playerid] = GetPlayerVehicleID(playerid);
  2050. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  2051. }
  2052. else
  2053. {
  2054.  
  2055. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  2056.  
  2057. }
  2058. return 1;
  2059. }
  2060. if(dialogid == 2055)
  2061. {
  2062. if(response)
  2063. {
  2064. if(listitem == 0)
  2065. {
  2066. if(IsPlayerInAnyVehicle(playerid)) return
  2067. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2068. new Float:x,Float:y,Float:z,Float:a, veh;
  2069. GetPlayerPos(playerid,x,y,z);
  2070. GetPlayerFacingAngle(playerid,a);
  2071. veh = CreateVehicle(418,x+1,y+1,z,a,1,1,10000);
  2072. PutPlayerInVehicle(playerid, veh, 0);
  2073. }
  2074. if(listitem == 1)
  2075. {
  2076. if(IsPlayerInAnyVehicle(playerid)) return
  2077. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2078. new Float:x,Float:y,Float:z,Float:a, veh;
  2079. GetPlayerPos(playerid,x,y,z);
  2080. GetPlayerFacingAngle(playerid,a);
  2081. veh = CreateVehicle(404,x+1,y+1,z,a,1,1,10000);
  2082. PutPlayerInVehicle(playerid, veh, 0);
  2083. }
  2084. if(listitem == 2)
  2085. {
  2086. if(IsPlayerInAnyVehicle(playerid)) return
  2087. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2088. new Float:x,Float:y,Float:z,Float:a, veh;
  2089. GetPlayerPos(playerid,x,y,z);
  2090. GetPlayerFacingAngle(playerid,a);
  2091. veh = CreateVehicle(479,x+1,y+1,z,a,1,1,10000);
  2092. PutPlayerInVehicle(playerid, veh, 0);
  2093. }
  2094. if(listitem == 3)
  2095. {
  2096. if(IsPlayerInAnyVehicle(playerid)) return
  2097. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2098. new Float:x,Float:y,Float:z,Float:a, veh;
  2099. GetPlayerPos(playerid,x,y,z);
  2100. GetPlayerFacingAngle(playerid,a);
  2101. veh = CreateVehicle(458,x+1,y+1,z,a,1,1,10000);
  2102. PutPlayerInVehicle(playerid, veh, 0);
  2103. }
  2104. if(listitem == 4)
  2105. {
  2106. if(IsPlayerInAnyVehicle(playerid)) return
  2107. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2108. new Float:x,Float:y,Float:z,Float:a, veh;
  2109. GetPlayerPos(playerid,x,y,z);
  2110. GetPlayerFacingAngle(playerid,a);
  2111. veh = CreateVehicle(561,x+1,y+1,z,a,1,1,10000);
  2112. PutPlayerInVehicle(playerid, veh, 0);
  2113. }
  2114. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  2115. {
  2116. DestroyVehicle(curveh[playerid]);
  2117. }
  2118. curveh[playerid] = GetPlayerVehicleID(playerid);
  2119. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  2120. }
  2121. else
  2122. {
  2123.  
  2124. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  2125.  
  2126. }
  2127. return 1;
  2128. }
  2129. if(dialogid == 2056)
  2130. {
  2131. if(response)
  2132. {
  2133. if(listitem == 0)
  2134. {
  2135. if(IsPlayerInAnyVehicle(playerid)) return
  2136. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2137. new Float:x,Float:y,Float:z,Float:a, veh;
  2138. GetPlayerPos(playerid,x,y,z);
  2139. GetPlayerFacingAngle(playerid,a);
  2140. veh = CreateVehicle(485,x+1,y+1,z,a,1,1,10000);
  2141. PutPlayerInVehicle(playerid, veh, 0);
  2142. }
  2143. if(listitem == 1)
  2144. {
  2145. if(IsPlayerInAnyVehicle(playerid)) return
  2146. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2147. new Float:x,Float:y,Float:z,Float:a, veh;
  2148. GetPlayerPos(playerid,x,y,z);
  2149. GetPlayerFacingAngle(playerid,a);
  2150. veh = CreateVehicle(457,x+1,y+1,z,a,1,1,10000);
  2151. PutPlayerInVehicle(playerid, veh, 0);
  2152. }
  2153. if(listitem == 2)
  2154. {
  2155. if(IsPlayerInAnyVehicle(playerid)) return
  2156. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2157. new Float:x,Float:y,Float:z,Float:a, veh;
  2158. GetPlayerPos(playerid,x,y,z);
  2159. GetPlayerFacingAngle(playerid,a);
  2160. veh = CreateVehicle(483,x+1,y+1,z,a,1,1,10000);
  2161. PutPlayerInVehicle(playerid, veh, 0);
  2162. }
  2163. if(listitem == 3)
  2164. {
  2165. if(IsPlayerInAnyVehicle(playerid)) return
  2166. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2167. new Float:x,Float:y,Float:z,Float:a, veh;
  2168. GetPlayerPos(playerid,x,y,z);
  2169. GetPlayerFacingAngle(playerid,a);
  2170. veh = CreateVehicle(532,x+1,y+1,z,a,1,1,10000);
  2171. PutPlayerInVehicle(playerid, veh, 0);
  2172. }
  2173. if(listitem == 4)
  2174. {
  2175. if(IsPlayerInAnyVehicle(playerid)) return
  2176. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2177. new Float:x,Float:y,Float:z,Float:a, veh;
  2178. GetPlayerPos(playerid,x,y,z);
  2179. GetPlayerFacingAngle(playerid,a);
  2180. veh = CreateVehicle(486,x+1,y+1,z,a,1,1,10000);
  2181. PutPlayerInVehicle(playerid, veh, 0);
  2182. }
  2183. if(listitem == 5)
  2184. {
  2185. if(IsPlayerInAnyVehicle(playerid)) return
  2186. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2187. new Float:x,Float:y,Float:z,Float:a, veh;
  2188. GetPlayerPos(playerid,x,y,z);
  2189. GetPlayerFacingAngle(playerid,a);
  2190. veh = CreateVehicle(406,x+1,y+1,z,a,1,1,10000);
  2191. PutPlayerInVehicle(playerid, veh, 0);
  2192. }
  2193. if(listitem == 6)
  2194. {
  2195. if(IsPlayerInAnyVehicle(playerid)) return
  2196. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2197. new Float:x,Float:y,Float:z,Float:a, veh;
  2198. GetPlayerPos(playerid,x,y,z);
  2199. GetPlayerFacingAngle(playerid,a);
  2200. veh = CreateVehicle(530,x+1,y+1,z,a,1,1,10000);
  2201. PutPlayerInVehicle(playerid, veh, 0);
  2202. }
  2203. if(listitem == 7)
  2204. {
  2205. if(IsPlayerInAnyVehicle(playerid)) return
  2206. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2207. new Float:x,Float:y,Float:z,Float:a, veh;
  2208. GetPlayerPos(playerid,x,y,z);
  2209. GetPlayerFacingAngle(playerid,a);
  2210. veh = CreateVehicle(434,x+1,y+1,z,a,1,1,10000);
  2211. PutPlayerInVehicle(playerid, veh, 0);
  2212. }
  2213. if(listitem == 8)
  2214. {
  2215. if(IsPlayerInAnyVehicle(playerid)) return
  2216. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2217. new Float:x,Float:y,Float:z,Float:a, veh;
  2218. GetPlayerPos(playerid,x,y,z);
  2219. GetPlayerFacingAngle(playerid,a);
  2220. veh = CreateVehicle(545,x+1,y+1,z,a,1,1,10000);
  2221. PutPlayerInVehicle(playerid, veh, 0);
  2222. }
  2223. if(listitem == 9)
  2224. {
  2225. if(IsPlayerInAnyVehicle(playerid)) return
  2226. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2227. new Float:x,Float:y,Float:z,Float:a, veh;
  2228. GetPlayerPos(playerid,x,y,z);
  2229. GetPlayerFacingAngle(playerid,a);
  2230. veh = CreateVehicle(588,x+1,y+1,z,a,1,1,10000);
  2231. PutPlayerInVehicle(playerid, veh, 0);
  2232. }
  2233. if(listitem == 10)
  2234. {
  2235. if(IsPlayerInAnyVehicle(playerid)) return
  2236. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2237. new Float:x,Float:y,Float:z,Float:a, veh;
  2238. GetPlayerPos(playerid,x,y,z);
  2239. GetPlayerFacingAngle(playerid,a);
  2240. veh = CreateVehicle(508,x+1,y+1,z,a,1,1,10000);
  2241. PutPlayerInVehicle(playerid, veh, 0);
  2242. }
  2243. if(listitem == 11)
  2244. {
  2245. if(IsPlayerInAnyVehicle(playerid)) return
  2246. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2247. new Float:x,Float:y,Float:z,Float:a, veh;
  2248. GetPlayerPos(playerid,x,y,z);
  2249. GetPlayerFacingAngle(playerid,a);
  2250. veh = CreateVehicle(571,x+1,y+1,z,a,1,1,10000);
  2251. PutPlayerInVehicle(playerid, veh, 0);
  2252. }
  2253. if(listitem == 12)
  2254. {
  2255. if(IsPlayerInAnyVehicle(playerid)) return
  2256. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2257. new Float:x,Float:y,Float:z,Float:a, veh;
  2258. GetPlayerPos(playerid,x,y,z);
  2259. GetPlayerFacingAngle(playerid,a);
  2260. veh = CreateVehicle(572,x+1,y+1,z,a,1,1,10000);
  2261. PutPlayerInVehicle(playerid, veh, 0);
  2262. }
  2263. if(listitem == 13)
  2264. {
  2265. if(IsPlayerInAnyVehicle(playerid)) return
  2266. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2267. new Float:x,Float:y,Float:z,Float:a, veh;
  2268. GetPlayerPos(playerid,x,y,z);
  2269. GetPlayerFacingAngle(playerid,a);
  2270. veh = CreateVehicle(423,x+1,y+1,z,a,1,1,10000);
  2271. PutPlayerInVehicle(playerid, veh, 0);
  2272. }
  2273. if(listitem == 14)
  2274. {
  2275. if(IsPlayerInAnyVehicle(playerid)) return
  2276. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2277. new Float:x,Float:y,Float:z,Float:a, veh;
  2278. GetPlayerPos(playerid,x,y,z);
  2279. GetPlayerFacingAngle(playerid,a);
  2280. veh = CreateVehicle(442,x+1,y+1,z,a,1,1,10000);
  2281. PutPlayerInVehicle(playerid, veh, 0);
  2282. }
  2283. if(listitem == 15)
  2284. {
  2285. if(IsPlayerInAnyVehicle(playerid)) return
  2286. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2287. new Float:x,Float:y,Float:z,Float:a, veh;
  2288. GetPlayerPos(playerid,x,y,z);
  2289. GetPlayerFacingAngle(playerid,a);
  2290. veh = CreateVehicle(428,x+1,y+1,z,a,1,1,10000);
  2291. PutPlayerInVehicle(playerid, veh, 0);
  2292. }
  2293. if(listitem == 16)
  2294. {
  2295. if(IsPlayerInAnyVehicle(playerid)) return
  2296. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2297. new Float:x,Float:y,Float:z,Float:a, veh;
  2298. GetPlayerPos(playerid,x,y,z);
  2299. GetPlayerFacingAngle(playerid,a);
  2300. veh = CreateVehicle(409,x+1,y+1,z,a,1,1,10000);
  2301. PutPlayerInVehicle(playerid, veh, 0);
  2302. }
  2303. if(listitem == 17)
  2304. {
  2305. if(IsPlayerInAnyVehicle(playerid)) return
  2306. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2307. new Float:x,Float:y,Float:z,Float:a, veh;
  2308. GetPlayerPos(playerid,x,y,z);
  2309. GetPlayerFacingAngle(playerid,a);
  2310. veh = CreateVehicle(574,x+1,y+1,z,a,1,1,10000);
  2311. PutPlayerInVehicle(playerid, veh, 0);
  2312. }
  2313. if(listitem == 18)
  2314. {
  2315. if(IsPlayerInAnyVehicle(playerid)) return
  2316. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2317. new Float:x,Float:y,Float:z,Float:a, veh;
  2318. GetPlayerPos(playerid,x,y,z);
  2319. GetPlayerFacingAngle(playerid,a);
  2320. veh = CreateVehicle(525,x+1,y+1,z,a,1,1,10000);
  2321. PutPlayerInVehicle(playerid, veh, 0);
  2322. }
  2323. if(listitem == 19)
  2324. {
  2325. if(IsPlayerInAnyVehicle(playerid)) return
  2326. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2327. new Float:x,Float:y,Float:z,Float:a, veh;
  2328. GetPlayerPos(playerid,x,y,z);
  2329. GetPlayerFacingAngle(playerid,a);
  2330. veh = CreateVehicle(583,x+1,y+1,z,a,1,1,10000);
  2331. PutPlayerInVehicle(playerid, veh, 0);
  2332. }
  2333. if(listitem == 20)
  2334. {
  2335. if(IsPlayerInAnyVehicle(playerid)) return
  2336. GameTextForPlayer(playerid, "~r~Exit the vehicle!", 5000, 5);
  2337. new Float:x,Float:y,Float:z,Float:a, veh;
  2338. GetPlayerPos(playerid,x,y,z);
  2339. GetPlayerFacingAngle(playerid,a);
  2340. veh = CreateVehicle(539,x+1,y+1,z,a,1,1,10000);
  2341. PutPlayerInVehicle(playerid, veh, 0);
  2342. }
  2343. if((CallRemoteFunction("IsVehicleOwned", "d", curveh[playerid]) == 0))
  2344. {
  2345. DestroyVehicle(curveh[playerid]);
  2346. }
  2347. curveh[playerid] = GetPlayerVehicleID(playerid);
  2348. curveh2[playerid] = GetVehicleModel(curveh[playerid]);
  2349. }
  2350. else
  2351. {
  2352.  
  2353. ShowPlayerDialog(playerid, 2014, DIALOG_STYLE_LIST, "Cars", "{FFFFFF}Convertiables\n{FFFFFF}Industrial\n{FFFFFF}Lowrides\n{FFFFFF}Off-Road\n{FFFFFF}Public Service\n{FFFFFF}Saloons\n{FFFFFF}Sport cars\n{FFFFFF}Station Wagons\n{FFFFFF}Unique", "Îê", "Íàçàä");
  2354.  
  2355. }
  2356. return 1;
  2357. }
  2358.  
  2359.  
  2360. return 1;
  2361. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement