Guest User

Admin Vozila v1.0.1 | by Andrijevic

a guest
Mar 11th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.76 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. #include < a_samp >
  3. #include < a_objects >
  4. #include < core >
  5. #include < float >
  6. #include < time >
  7. #include < file >
  8. #include < streamer >
  9. #include < YSI\y_ini >
  10. #include < YSI\y_commands >
  11. #include < sscanf2 >
  12. #include < YSI\y_va >
  13. ////////////////////////////////////////////////////////////////////////////////
  14. new Text:AVeh[27];
  15. new vozilo1;
  16. new vozilo2;
  17. new vozilo3;
  18. new vozilo4;
  19. new vozilo5;
  20. new vozilo6;
  21. new vozilo7;
  22. new vozilo8;
  23. ////////////////////////////////////////////////////////////////////////////////
  24. #define ZUTA "{F3FF02}"
  25. ////////////////////////////////////////////////////////////////////////////////
  26. public OnGameModeInit()
  27. {
  28. AVeh[0] = TextDrawCreate(96.000000, 78.437500, "LD_SPAC:white");
  29. TextDrawLetterSize(AVeh[0], 0.000000, 0.000000);
  30. TextDrawTextSize(AVeh[0], 470.000000, 261.000000);
  31. TextDrawAlignment(AVeh[0], 1);
  32. TextDrawColor(AVeh[0], 255);
  33. TextDrawSetShadow(AVeh[0], 0);
  34. TextDrawSetOutline(AVeh[0], 0);
  35. TextDrawBackgroundColor(AVeh[0], 255);
  36. TextDrawFont(AVeh[0], 4);
  37. TextDrawSetProportional(AVeh[0], 0);
  38. TextDrawSetShadow(AVeh[0], 0);
  39.  
  40. AVeh[1] = TextDrawCreate(96.000000, 78.437500, "LD_SPAC:white");
  41. TextDrawLetterSize(AVeh[1], 0.000000, 0.000000);
  42. TextDrawTextSize(AVeh[1], 470.000000, 18.000000);
  43. TextDrawAlignment(AVeh[1], 1);
  44. TextDrawColor(AVeh[1], 65535);
  45. TextDrawSetShadow(AVeh[1], 0);
  46. TextDrawSetOutline(AVeh[1], 0);
  47. TextDrawBackgroundColor(AVeh[1], 255);
  48. TextDrawFont(AVeh[1], 4);
  49. TextDrawSetProportional(AVeh[1], 0);
  50. TextDrawSetShadow(AVeh[1], 0);
  51.  
  52. AVeh[2] = TextDrawCreate(257.500000, 80.187500, "-_Long_Beach_-");
  53. TextDrawLetterSize(AVeh[2], 0.400000, 1.600000);
  54. TextDrawAlignment(AVeh[2], 1);
  55. TextDrawColor(AVeh[2], -1);
  56. TextDrawSetShadow(AVeh[2], 0);
  57. TextDrawSetOutline(AVeh[2], 0);
  58. TextDrawBackgroundColor(AVeh[2], 255);
  59. TextDrawFont(AVeh[2], 2);
  60. TextDrawSetProportional(AVeh[2], 1);
  61. TextDrawSetShadow(AVeh[2], 0);
  62.  
  63. AVeh[3] = TextDrawCreate(96.000000, 322.125000, "LD_SPAC:white");
  64. TextDrawLetterSize(AVeh[3], 0.000000, 0.000000);
  65. TextDrawTextSize(AVeh[3], 470.000000, 18.000000);
  66. TextDrawAlignment(AVeh[3], 1);
  67. TextDrawColor(AVeh[3], 65535);
  68. TextDrawSetShadow(AVeh[3], 0);
  69. TextDrawSetOutline(AVeh[3], 0);
  70. TextDrawBackgroundColor(AVeh[3], 255);
  71. TextDrawFont(AVeh[3], 4);
  72. TextDrawSetProportional(AVeh[3], 0);
  73. TextDrawSetShadow(AVeh[3], 0);
  74.  
  75. AVeh[4] = TextDrawCreate(263.000000, 323.437500, "-_admin_panel_-~n~");
  76. TextDrawLetterSize(AVeh[4], 0.400000, 1.600000);
  77. TextDrawAlignment(AVeh[4], 1);
  78. TextDrawColor(AVeh[4], -1);
  79. TextDrawSetShadow(AVeh[4], 0);
  80. TextDrawSetOutline(AVeh[4], 0);
  81. TextDrawBackgroundColor(AVeh[4], 255);
  82. TextDrawFont(AVeh[4], 2);
  83. TextDrawSetProportional(AVeh[4], 1);
  84. TextDrawSetShadow(AVeh[4], 0);
  85.  
  86. AVeh[5] = TextDrawCreate(96.000000, 95.500000, "LD_SPAC:white");
  87. TextDrawLetterSize(AVeh[5], 0.000000, 0.000000);
  88. TextDrawTextSize(AVeh[5], 2.000000, 229.000000);
  89. TextDrawAlignment(AVeh[5], 1);
  90. TextDrawColor(AVeh[5], 65535);
  91. TextDrawSetShadow(AVeh[5], 0);
  92. TextDrawSetOutline(AVeh[5], 0);
  93. TextDrawBackgroundColor(AVeh[5], 255);
  94. TextDrawFont(AVeh[5], 4);
  95. TextDrawSetProportional(AVeh[5], 0);
  96. TextDrawSetShadow(AVeh[5], 0);
  97.  
  98. AVeh[6] = TextDrawCreate(564.000000, 94.625000, "LD_SPAC:white");
  99. TextDrawLetterSize(AVeh[6], 0.000000, 0.000000);
  100. TextDrawTextSize(AVeh[6], 2.000000, 229.000000);
  101. TextDrawAlignment(AVeh[6], 1);
  102. TextDrawColor(AVeh[6], 65535);
  103. TextDrawSetShadow(AVeh[6], 0);
  104. TextDrawSetOutline(AVeh[6], 0);
  105. TextDrawBackgroundColor(AVeh[6], 255);
  106. TextDrawFont(AVeh[6], 4);
  107. TextDrawSetProportional(AVeh[6], 0);
  108. TextDrawSetShadow(AVeh[6], 0);
  109.  
  110. AVeh[7] = TextDrawCreate(163.000000, 110.812500, "LD_SPAC:white");
  111. TextDrawLetterSize(AVeh[7], 0.000000, 0.000000);
  112. TextDrawTextSize(AVeh[7], 338.000000, 14.000000);
  113. TextDrawAlignment(AVeh[7], 1);
  114. TextDrawColor(AVeh[7], 65535);
  115. TextDrawSetShadow(AVeh[7], 0);
  116. TextDrawSetOutline(AVeh[7], 0);
  117. TextDrawBackgroundColor(AVeh[7], 255);
  118. TextDrawFont(AVeh[7], 4);
  119. TextDrawSetProportional(AVeh[7], 0);
  120. TextDrawSetShadow(AVeh[7], 0);
  121.  
  122. AVeh[8] = TextDrawCreate(304.000000, 109.937500, "Vozila");
  123. TextDrawLetterSize(AVeh[8], 0.400000, 1.600000);
  124. TextDrawAlignment(AVeh[8], 1);
  125. TextDrawColor(AVeh[8], -1);
  126. TextDrawSetShadow(AVeh[8], 0);
  127. TextDrawSetOutline(AVeh[8], 0);
  128. TextDrawBackgroundColor(AVeh[8], 255);
  129. TextDrawFont(AVeh[8], 3);
  130. TextDrawSetProportional(AVeh[8], 1);
  131. TextDrawSetShadow(AVeh[8], 0);
  132.  
  133. AVeh[9] = TextDrawCreate(134.000000, 125.687500, "");
  134. TextDrawLetterSize(AVeh[9], 0.000000, 0.000000);
  135. TextDrawTextSize(AVeh[9], 90.000000, 90.000000);
  136. TextDrawAlignment(AVeh[9], 1);
  137. TextDrawColor(AVeh[9], -1);
  138. TextDrawSetShadow(AVeh[9], 0);
  139. TextDrawSetOutline(AVeh[9], 0);
  140. TextDrawBackgroundColor(AVeh[9], 255);
  141. TextDrawFont(AVeh[9], 5);
  142. TextDrawSetProportional(AVeh[9], 0);
  143. TextDrawSetShadow(AVeh[9], 0);
  144. TextDrawSetSelectable(AVeh[9], true);
  145. TextDrawSetPreviewModel(AVeh[9], 560);
  146. TextDrawSetPreviewRot(AVeh[9], 0.000000, 0.000000, -40.000000, 1.000000);
  147. TextDrawSetPreviewVehCol(AVeh[9], 1, 1);
  148.  
  149. AVeh[10] = TextDrawCreate(139.500000, 184.075012, "sultan");
  150. TextDrawLetterSize(AVeh[10], 0.400000, 1.600000);
  151. TextDrawAlignment(AVeh[10], 1);
  152. TextDrawColor(AVeh[10], -1);
  153. TextDrawSetShadow(AVeh[10], 0);
  154. TextDrawSetOutline(AVeh[10], 0);
  155. TextDrawBackgroundColor(AVeh[10], 255);
  156. TextDrawFont(AVeh[10], 2);
  157. TextDrawSetProportional(AVeh[10], 1);
  158. TextDrawSetShadow(AVeh[10], 0);
  159.  
  160. AVeh[11] = TextDrawCreate(237.000000, 125.250000, "");
  161. TextDrawLetterSize(AVeh[11], 0.000000, 0.000000);
  162. TextDrawTextSize(AVeh[11], 90.000000, 90.000000);
  163. TextDrawAlignment(AVeh[11], 1);
  164. TextDrawColor(AVeh[11], -1);
  165. TextDrawSetShadow(AVeh[11], 0);
  166. TextDrawSetOutline(AVeh[11], 0);
  167. TextDrawBackgroundColor(AVeh[11], 255);
  168. TextDrawFont(AVeh[11], 5);
  169. TextDrawSetProportional(AVeh[11], 0);
  170. TextDrawSetShadow(AVeh[11], 0);
  171. TextDrawSetSelectable(AVeh[11], true);
  172. TextDrawSetPreviewModel(AVeh[11], 541);
  173. TextDrawSetPreviewRot(AVeh[11], 0.000000, 0.000000, -40.000000, 1.000000);
  174. TextDrawSetPreviewVehCol(AVeh[11], 1, 1);
  175.  
  176. AVeh[12] = TextDrawCreate(246.500000, 184.512512, "bullet");
  177. TextDrawLetterSize(AVeh[12], 0.400000, 1.600000);
  178. TextDrawAlignment(AVeh[12], 1);
  179. TextDrawColor(AVeh[12], -1);
  180. TextDrawSetShadow(AVeh[12], 0);
  181. TextDrawSetOutline(AVeh[12], 0);
  182. TextDrawBackgroundColor(AVeh[12], 255);
  183. TextDrawFont(AVeh[12], 2);
  184. TextDrawSetProportional(AVeh[12], 1);
  185. TextDrawSetShadow(AVeh[12], 0);
  186.  
  187. AVeh[13] = TextDrawCreate(330.000000, 127.000000, "");
  188. TextDrawLetterSize(AVeh[13], 0.000000, 0.000000);
  189. TextDrawTextSize(AVeh[13], 90.000000, 90.000000);
  190. TextDrawAlignment(AVeh[13], 1);
  191. TextDrawColor(AVeh[13], -1);
  192. TextDrawSetShadow(AVeh[13], 0);
  193. TextDrawSetOutline(AVeh[13], 0);
  194. TextDrawBackgroundColor(AVeh[13], 255);
  195. TextDrawFont(AVeh[13], 5);
  196. TextDrawSetProportional(AVeh[13], 0);
  197. TextDrawSetShadow(AVeh[13], 0);
  198. TextDrawSetSelectable(AVeh[13], true);
  199. TextDrawSetPreviewModel(AVeh[13], 411);
  200. TextDrawSetPreviewRot(AVeh[13], 0.000000, 0.000000, -40.000000, 1.000000);
  201. TextDrawSetPreviewVehCol(AVeh[13], 1, 1);
  202.  
  203. AVeh[14] = TextDrawCreate(332.000000, 184.512512, "infernus");
  204. TextDrawLetterSize(AVeh[14], 0.400000, 1.600000);
  205. TextDrawAlignment(AVeh[14], 1);
  206. TextDrawColor(AVeh[14], -1);
  207. TextDrawSetShadow(AVeh[14], 0);
  208. TextDrawSetOutline(AVeh[14], 0);
  209. TextDrawBackgroundColor(AVeh[14], 255);
  210. TextDrawFont(AVeh[14], 2);
  211. TextDrawSetProportional(AVeh[14], 1);
  212. TextDrawSetShadow(AVeh[14], 0);
  213.  
  214. AVeh[15] = TextDrawCreate(426.500000, 126.562500, "");
  215. TextDrawLetterSize(AVeh[15], 0.000000, 0.000000);
  216. TextDrawTextSize(AVeh[15], 90.000000, 90.000000);
  217. TextDrawAlignment(AVeh[15], 1);
  218. TextDrawColor(AVeh[15], -1);
  219. TextDrawSetShadow(AVeh[15], 0);
  220. TextDrawSetOutline(AVeh[15], 0);
  221. TextDrawBackgroundColor(AVeh[15], 255);
  222. TextDrawFont(AVeh[15], 5);
  223. TextDrawSetProportional(AVeh[15], 0);
  224. TextDrawSetShadow(AVeh[15], 0);
  225. TextDrawSetSelectable(AVeh[15], true);
  226. TextDrawSetPreviewModel(AVeh[15], 415);
  227. TextDrawSetPreviewRot(AVeh[15], 0.000000, 0.000000, -40.000000, 1.000000);
  228. TextDrawSetPreviewVehCol(AVeh[15], 1, 1);
  229.  
  230. AVeh[16] = TextDrawCreate(432.000000, 185.387512, "cheetah");
  231. TextDrawLetterSize(AVeh[16], 0.400000, 1.600000);
  232. TextDrawAlignment(AVeh[16], 1);
  233. TextDrawColor(AVeh[16], -1);
  234. TextDrawSetShadow(AVeh[16], 0);
  235. TextDrawSetOutline(AVeh[16], 0);
  236. TextDrawBackgroundColor(AVeh[16], 255);
  237. TextDrawFont(AVeh[16], 2);
  238. TextDrawSetProportional(AVeh[16], 1);
  239. TextDrawSetShadow(AVeh[16], 0);
  240.  
  241. AVeh[17] = TextDrawCreate(133.000000, 208.375000, "");
  242. TextDrawLetterSize(AVeh[17], 0.000000, 0.000000);
  243. TextDrawTextSize(AVeh[17], 90.000000, 90.000000);
  244. TextDrawAlignment(AVeh[17], 1);
  245. TextDrawColor(AVeh[17], -1);
  246. TextDrawSetShadow(AVeh[17], 0);
  247. TextDrawSetOutline(AVeh[17], 0);
  248. TextDrawBackgroundColor(AVeh[17], 255);
  249. TextDrawFont(AVeh[17], 5);
  250. TextDrawSetProportional(AVeh[17], 0);
  251. TextDrawSetShadow(AVeh[17], 0);
  252. TextDrawSetSelectable(AVeh[17], true);
  253. TextDrawSetPreviewModel(AVeh[17], 451);
  254. TextDrawSetPreviewRot(AVeh[17], 0.000000, 0.000000, -40.000000, 1.000000);
  255. TextDrawSetPreviewVehCol(AVeh[17], 1, 1);
  256.  
  257. AVeh[18] = TextDrawCreate(137.500000, 270.700012, "turismo");
  258. TextDrawLetterSize(AVeh[18], 0.400000, 1.600000);
  259. TextDrawAlignment(AVeh[18], 1);
  260. TextDrawColor(AVeh[18], -1);
  261. TextDrawSetShadow(AVeh[18], 0);
  262. TextDrawSetOutline(AVeh[18], 0);
  263. TextDrawBackgroundColor(AVeh[18], 255);
  264. TextDrawFont(AVeh[18], 2);
  265. TextDrawSetProportional(AVeh[18], 1);
  266. TextDrawSetShadow(AVeh[18], 0);
  267.  
  268. AVeh[19] = TextDrawCreate(240.000000, 209.250000, "");
  269. TextDrawLetterSize(AVeh[19], 0.000000, 0.000000);
  270. TextDrawTextSize(AVeh[19], 90.000000, 90.000000);
  271. TextDrawAlignment(AVeh[19], 1);
  272. TextDrawColor(AVeh[19], -1);
  273. TextDrawSetShadow(AVeh[19], 0);
  274. TextDrawSetOutline(AVeh[19], 0);
  275. TextDrawBackgroundColor(AVeh[19], 255);
  276. TextDrawFont(AVeh[19], 5);
  277. TextDrawSetProportional(AVeh[19], 0);
  278. TextDrawSetShadow(AVeh[19], 0);
  279. TextDrawSetSelectable(AVeh[19], true);
  280. TextDrawSetPreviewModel(AVeh[19], 480);
  281. TextDrawSetPreviewRot(AVeh[19], 0.000000, 0.000000, -40.000000, 1.000000);
  282. TextDrawSetPreviewVehCol(AVeh[19], 1, 1);
  283.  
  284. AVeh[20] = TextDrawCreate(252.000000, 270.262512, "comet");
  285. TextDrawLetterSize(AVeh[20], 0.400000, 1.600000);
  286. TextDrawAlignment(AVeh[20], 1);
  287. TextDrawColor(AVeh[20], -1);
  288. TextDrawSetShadow(AVeh[20], 0);
  289. TextDrawSetOutline(AVeh[20], 0);
  290. TextDrawBackgroundColor(AVeh[20], 255);
  291. TextDrawFont(AVeh[20], 2);
  292. TextDrawSetProportional(AVeh[20], 1);
  293. TextDrawSetShadow(AVeh[20], 0);
  294.  
  295. AVeh[21] = TextDrawCreate(334.000000, 207.500000, "");
  296. TextDrawLetterSize(AVeh[21], 0.000000, 0.000000);
  297. TextDrawTextSize(AVeh[21], 90.000000, 90.000000);
  298. TextDrawAlignment(AVeh[21], 1);
  299. TextDrawColor(AVeh[21], -1);
  300. TextDrawSetShadow(AVeh[21], 0);
  301. TextDrawSetOutline(AVeh[21], 0);
  302. TextDrawBackgroundColor(AVeh[21], 255);
  303. TextDrawFont(AVeh[21], 5);
  304. TextDrawSetProportional(AVeh[21], 0);
  305. TextDrawSetShadow(AVeh[21], 0);
  306. TextDrawSetSelectable(AVeh[21], true);
  307. TextDrawSetPreviewModel(AVeh[21], 506);
  308. TextDrawSetPreviewRot(AVeh[21], 0.000000, 0.000000, -40.000000, 1.000000);
  309. TextDrawSetPreviewVehCol(AVeh[21], 1, 1);
  310.  
  311. AVeh[22] = TextDrawCreate(338.000000, 270.262512, "super_gt");
  312. TextDrawLetterSize(AVeh[22], 0.400000, 1.600000);
  313. TextDrawAlignment(AVeh[22], 1);
  314. TextDrawColor(AVeh[22], -1);
  315. TextDrawSetShadow(AVeh[22], 0);
  316. TextDrawSetOutline(AVeh[22], 0);
  317. TextDrawBackgroundColor(AVeh[22], 255);
  318. TextDrawFont(AVeh[22], 2);
  319. TextDrawSetProportional(AVeh[22], 1);
  320. TextDrawSetShadow(AVeh[22], 0);
  321.  
  322. AVeh[23] = TextDrawCreate(431.000000, 209.250000, "");
  323. TextDrawLetterSize(AVeh[23], 0.000000, 0.000000);
  324. TextDrawTextSize(AVeh[23], 90.000000, 90.000000);
  325. TextDrawAlignment(AVeh[23], 1);
  326. TextDrawColor(AVeh[23], -1);
  327. TextDrawSetShadow(AVeh[23], 0);
  328. TextDrawSetOutline(AVeh[23], 0);
  329. TextDrawBackgroundColor(AVeh[23], 255);
  330. TextDrawFont(AVeh[23], 5);
  331. TextDrawSetProportional(AVeh[23], 0);
  332. TextDrawSetShadow(AVeh[23], 0);
  333. TextDrawSetSelectable(AVeh[23], true);
  334. TextDrawSetPreviewModel(AVeh[23], 489);
  335. TextDrawSetPreviewRot(AVeh[23], 0.000000, 0.000000, -40.000000, 1.000000);
  336. TextDrawSetPreviewVehCol(AVeh[23], 1, 1);
  337.  
  338. AVeh[24] = TextDrawCreate(440.000000, 271.137512, "rancher");
  339. TextDrawLetterSize(AVeh[24], 0.400000, 1.600000);
  340. TextDrawAlignment(AVeh[24], 1);
  341. TextDrawColor(AVeh[24], -1);
  342. TextDrawSetShadow(AVeh[24], 0);
  343. TextDrawSetOutline(AVeh[24], 0);
  344. TextDrawBackgroundColor(AVeh[24], 255);
  345. TextDrawFont(AVeh[24], 2);
  346. TextDrawSetProportional(AVeh[24], 1);
  347. TextDrawSetShadow(AVeh[24], 0);
  348.  
  349. AVeh[25] = TextDrawCreate(452.500000, 306.812500, "LD_SPAC:white");
  350. TextDrawLetterSize(AVeh[25], 0.000000, 0.000000);
  351. TextDrawTextSize(AVeh[25], 100.000000, 11.000000);
  352. TextDrawAlignment(AVeh[25], 1);
  353. TextDrawColor(AVeh[25], 65535);
  354. TextDrawSetShadow(AVeh[25], 0);
  355. TextDrawSetOutline(AVeh[25], 0);
  356. TextDrawBackgroundColor(AVeh[25], 255);
  357. TextDrawFont(AVeh[25], 4);
  358. TextDrawSetProportional(AVeh[25], 0);
  359. TextDrawSetShadow(AVeh[25], 0);
  360.  
  361. AVeh[26] = TextDrawCreate(488.500000, 305.500000, "izlaz");
  362. TextDrawLetterSize(AVeh[26], 0.341500, 1.355000);
  363. TextDrawAlignment(AVeh[26], 1);
  364. TextDrawColor(AVeh[26], -1);
  365. TextDrawSetShadow(AVeh[26], 0);
  366. TextDrawSetOutline(AVeh[26], 0);
  367. TextDrawBackgroundColor(AVeh[26], 255);
  368. TextDrawFont(AVeh[26], 3);
  369. TextDrawSetProportional(AVeh[26], 1);
  370. TextDrawSetShadow(AVeh[26], 0);
  371. TextDrawSetSelectable(AVeh[26], true);
  372. return 1;
  373. }
  374. ////////////////////////////////////////////////////////////////////////////////
  375. YCMD:aveh(playerid, params[],help)
  376. {
  377. #pragma unused help
  378. if(IsPlayerAdmin(playerid))
  379. for(new i = 0; i < 28; i++) { TextDrawShowForPlayer(playerid, AVeh[i]); }
  380. SelectTextDraw(playerid, 0xFF4040AA);
  381. return 1;
  382. }
  383. ////////////////////////////////////////////////////////////////////////////////
  384. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  385. {
  386. if(newkeys == KEY_SUBMISSION)
  387. {
  388. SelectTextDraw(playerid, 0xFF4040AA);
  389. }
  390. return 1;
  391. }
  392. ////////////////////////////////////////////////////////////////////////////////
  393. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  394. {
  395. if(clickedid == AVeh[9])
  396. {
  397. new Float:Pos[4];
  398. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  399. vozilo1 = CreateVehicle(560,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  400. PutPlayerInVehicle(playerid,vozilo1,0);
  401. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ SULTAN ]");
  402. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  403. CancelSelectTextDraw(playerid);
  404. }
  405. if(clickedid == AVeh[11])
  406. {
  407. new Float:Pos[4];
  408. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  409. vozilo2 = CreateVehicle(541,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  410. PutPlayerInVehicle(playerid,vozilo2,0);
  411. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ BULLET ]");
  412. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  413. CancelSelectTextDraw(playerid);
  414. }
  415. if(clickedid == AVeh[13])
  416. {
  417. new Float:Pos[4];
  418. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  419. vozilo3 = CreateVehicle(411,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  420. PutPlayerInVehicle(playerid,vozilo3,0);
  421. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ INFERNUS ]");
  422. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  423. CancelSelectTextDraw(playerid);
  424. }
  425. if(clickedid == AVeh[15])
  426. {
  427. new Float:Pos[4];
  428. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  429. vozilo4 = CreateVehicle(415,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  430. PutPlayerInVehicle(playerid,vozilo4,0);
  431. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ CHEETAH ]");
  432. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  433. CancelSelectTextDraw(playerid);
  434. }
  435. if(clickedid == AVeh[17])
  436. {
  437. new Float:Pos[4];
  438. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  439. vozilo5 = CreateVehicle(451,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  440. PutPlayerInVehicle(playerid,vozilo5,0);
  441. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ TURISMO ]");
  442. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  443. CancelSelectTextDraw(playerid);
  444. }
  445. if(clickedid == AVeh[19])
  446. {
  447. new Float:Pos[4];
  448. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  449. vozilo6 = CreateVehicle(480,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  450. PutPlayerInVehicle(playerid,vozilo6,0);
  451. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ COMET ]");
  452. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  453. CancelSelectTextDraw(playerid);
  454. }
  455. if(clickedid == AVeh[21])
  456. {
  457. new Float:Pos[4];
  458. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  459. vozilo7 = CreateVehicle(506,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  460. PutPlayerInVehicle(playerid,vozilo7,0);
  461. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ SUPER GT ]");
  462. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  463. CancelSelectTextDraw(playerid);
  464. }
  465. if(clickedid == AVeh[23])
  466. {
  467. new Float:Pos[4];
  468. GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
  469. vozilo8 = CreateVehicle(489,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
  470. PutPlayerInVehicle(playerid,vozilo8,0);
  471. SendClientMessage(playerid, -1, "{F3FF02}Stvorio si vozilo [ RANCHER ]");
  472. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  473. CancelSelectTextDraw(playerid);
  474. }
  475. if(clickedid == AVeh[26])
  476. {
  477. for(new i = 0; i < 28; i++) { TextDrawHideForPlayer(playerid, AVeh[i]); }
  478. CancelSelectTextDraw(playerid);
  479. }
  480. return 1;
  481. }
Add Comment
Please, Sign In to add comment