Guest User

Untitled

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