Guest User

Untitled

a guest
Feb 15th, 2015
997
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.71 KB | None | 0 0
  1. /*
  2.  
  3.  
  4. -----------------------
  5. Tuning system by Adel
  6. -----------------------
  7.  
  8.  
  9. Credits: adri1 (I used his textdraw editor)
  10.  
  11.  
  12. */
  13.  
  14. #include <a_samp>
  15.  
  16.  
  17. #define FILTERSCRIPT
  18. #pragma tabsize 0
  19. #define VEHCOLOR 200
  20. new Text:TDEditor_TD[56];
  21. new Text:TDEditor_PTD[MAX_PLAYERS][1];
  22.  
  23. #if defined FILTERSCRIPT
  24.  
  25. public OnFilterScriptInit()
  26. {
  27. print("\n--------------------------------------");
  28. print("Tuning system by Adel loaded");
  29. print("--------------------------------------\n");
  30.  
  31. TDEditor_TD[0] = TextDrawCreate(386.799896, 179.546798, "box");
  32. TextDrawLetterSize(TDEditor_TD[0], 0.000000, 11.519994);
  33. TextDrawTextSize(TDEditor_TD[0], 109.999931, 0.000000);
  34. TextDrawAlignment(TDEditor_TD[0], 1);
  35. TextDrawColor(TDEditor_TD[0], -1);
  36. TextDrawUseBox(TDEditor_TD[0], 1);
  37. TextDrawBoxColor(TDEditor_TD[0], 255);
  38. TextDrawSetShadow(TDEditor_TD[0], 0);
  39. TextDrawSetOutline(TDEditor_TD[0], 0);
  40. TextDrawBackgroundColor(TDEditor_TD[0], 255);
  41. TextDrawFont(TDEditor_TD[0], 1);
  42. TextDrawSetProportional(TDEditor_TD[0], 1);
  43. TextDrawSetShadow(TDEditor_TD[0], 0);
  44.  
  45. TDEditor_TD[1] = TextDrawCreate(116.399940, 163.866729, "box");
  46. TextDrawLetterSize(TDEditor_TD[1], 0.000000, 0.800000);
  47. TextDrawTextSize(TDEditor_TD[1], 300.400146, 0.000000);
  48. TextDrawAlignment(TDEditor_TD[1], 1);
  49. TextDrawColor(TDEditor_TD[1], -1);
  50. TextDrawUseBox(TDEditor_TD[1], 1);
  51. TextDrawBoxColor(TDEditor_TD[1], 255);
  52. TextDrawSetShadow(TDEditor_TD[1], 0);
  53. TextDrawSetOutline(TDEditor_TD[1], 0);
  54. TextDrawBackgroundColor(TDEditor_TD[1], 255);
  55. TextDrawFont(TDEditor_TD[1], 1);
  56. TextDrawSetProportional(TDEditor_TD[1], 1);
  57. TextDrawSetShadow(TDEditor_TD[1], 0);
  58.  
  59. TDEditor_TD[2] = TextDrawCreate(118.800010, 162.373321, "tune_system_by_adel");
  60. TextDrawLetterSize(TDEditor_TD[2], 0.448000, 1.137066);
  61. TextDrawAlignment(TDEditor_TD[2], 1);
  62. TextDrawColor(TDEditor_TD[2], -5963521);
  63. TextDrawSetShadow(TDEditor_TD[2], 0);
  64. TextDrawSetOutline(TDEditor_TD[2], 0);
  65. TextDrawBackgroundColor(TDEditor_TD[2], 255);
  66. TextDrawFont(TDEditor_TD[2], 3);
  67. TextDrawSetProportional(TDEditor_TD[2], 1);
  68. TextDrawSetShadow(TDEditor_TD[2], 0);
  69.  
  70. TDEditor_TD[3] = TextDrawCreate(312.399475, 163.866775, "box");
  71. TextDrawLetterSize(TDEditor_TD[3], 0.000000, 0.799996);
  72. TextDrawTextSize(TDEditor_TD[3], 379.599487, 0.000000);
  73. TextDrawAlignment(TDEditor_TD[3], 1);
  74. TextDrawColor(TDEditor_TD[3], -1);
  75. TextDrawUseBox(TDEditor_TD[3], 1);
  76. TextDrawBoxColor(TDEditor_TD[3], 255);
  77. TextDrawSetShadow(TDEditor_TD[3], 0);
  78. TextDrawSetOutline(TDEditor_TD[3], 0);
  79. TextDrawBackgroundColor(TDEditor_TD[3], 255);
  80. TextDrawFont(TDEditor_TD[3], 1);
  81. TextDrawSetProportional(TDEditor_TD[3], 1);
  82. TextDrawSetShadow(TDEditor_TD[3], 0);
  83.  
  84. TDEditor_TD[4] = TextDrawCreate(329.200073, 161.626632, "exit");
  85. TextDrawLetterSize(TDEditor_TD[4], 0.442400, 1.159466);
  86. TextDrawTextSize(TDEditor_TD[4], 359.000122, 12.000000);
  87. TextDrawAlignment(TDEditor_TD[4], 1);
  88. TextDrawColor(TDEditor_TD[4], -1);
  89. TextDrawUseBox(TDEditor_TD[4], 1);
  90. TextDrawBoxColor(TDEditor_TD[4], -256);
  91. TextDrawSetShadow(TDEditor_TD[4], 0);
  92. TextDrawSetOutline(TDEditor_TD[4], 0);
  93. TextDrawBackgroundColor(TDEditor_TD[4], 255);
  94. TextDrawFont(TDEditor_TD[4], 3);
  95. TextDrawSetProportional(TDEditor_TD[4], 1);
  96. TextDrawSetShadow(TDEditor_TD[4], 0);
  97. TextDrawSetSelectable(TDEditor_TD[4], true);
  98.  
  99. TDEditor_TD[5] = TextDrawCreate(218.799972, 191.493347, "COLOR");
  100. TextDrawLetterSize(TDEditor_TD[5], 0.411998, 1.293866);
  101. TextDrawTextSize(TDEditor_TD[5], 271.199981, 12.000000);
  102. TextDrawAlignment(TDEditor_TD[5], 1);
  103. TextDrawColor(TDEditor_TD[5], -1);
  104. TextDrawUseBox(TDEditor_TD[5], 1);
  105. TextDrawBoxColor(TDEditor_TD[5], -256);
  106. TextDrawSetShadow(TDEditor_TD[5], 0);
  107. TextDrawSetOutline(TDEditor_TD[5], 0);
  108. TextDrawBackgroundColor(TDEditor_TD[5], 255);
  109. TextDrawFont(TDEditor_TD[5], 2);
  110. TextDrawSetProportional(TDEditor_TD[5], 1);
  111. TextDrawSetShadow(TDEditor_TD[5], 0);
  112. TextDrawSetSelectable(TDEditor_TD[5], true);
  113.  
  114. TDEditor_TD[6] = TextDrawCreate(216.399963, 207.920074, "WHEELS");
  115. TextDrawLetterSize(TDEditor_TD[6], 0.411998, 1.293866);
  116. TextDrawTextSize(TDEditor_TD[6], 268.799987, 12.000000);
  117. TextDrawAlignment(TDEditor_TD[6], 1);
  118. TextDrawColor(TDEditor_TD[6], -1);
  119. TextDrawUseBox(TDEditor_TD[6], 1);
  120. TextDrawBoxColor(TDEditor_TD[6], -256);
  121. TextDrawSetShadow(TDEditor_TD[6], 0);
  122. TextDrawSetOutline(TDEditor_TD[6], 0);
  123. TextDrawBackgroundColor(TDEditor_TD[6], 255);
  124. TextDrawFont(TDEditor_TD[6], 2);
  125. TextDrawSetProportional(TDEditor_TD[6], 1);
  126. TextDrawSetShadow(TDEditor_TD[6], 0);
  127. TextDrawSetSelectable(TDEditor_TD[6], true);
  128.  
  129. TDEditor_TD[7] = TextDrawCreate(170.799850, 225.840133, "HYDRAULIC_SYSTEM");
  130. TextDrawLetterSize(TDEditor_TD[7], 0.411998, 1.293866);
  131. TextDrawTextSize(TDEditor_TD[7], 330.399871, 12.000000);
  132. TextDrawAlignment(TDEditor_TD[7], 1);
  133. TextDrawColor(TDEditor_TD[7], -1);
  134. TextDrawUseBox(TDEditor_TD[7], 1);
  135. TextDrawBoxColor(TDEditor_TD[7], -256);
  136. TextDrawSetShadow(TDEditor_TD[7], 0);
  137. TextDrawSetOutline(TDEditor_TD[7], 0);
  138. TextDrawBackgroundColor(TDEditor_TD[7], 255);
  139. TextDrawFont(TDEditor_TD[7], 2);
  140. TextDrawSetProportional(TDEditor_TD[7], 1);
  141. TextDrawSetShadow(TDEditor_TD[7], 0);
  142. TextDrawSetSelectable(TDEditor_TD[7], true);
  143.  
  144. TDEditor_TD[8] = TextDrawCreate(222.799880, 243.013397, "NITRO");
  145. TextDrawLetterSize(TDEditor_TD[8], 0.411998, 1.293866);
  146. TextDrawTextSize(TDEditor_TD[8], 275.199951, 12.000000);
  147. TextDrawAlignment(TDEditor_TD[8], 1);
  148. TextDrawColor(TDEditor_TD[8], -1);
  149. TextDrawUseBox(TDEditor_TD[8], 1);
  150. TextDrawBoxColor(TDEditor_TD[8], -256);
  151. TextDrawSetShadow(TDEditor_TD[8], 0);
  152. TextDrawSetOutline(TDEditor_TD[8], 0);
  153. TextDrawBackgroundColor(TDEditor_TD[8], 255);
  154. TextDrawFont(TDEditor_TD[8], 2);
  155. TextDrawSetProportional(TDEditor_TD[8], 1);
  156. TextDrawSetShadow(TDEditor_TD[8], 0);
  157. TextDrawSetSelectable(TDEditor_TD[8], true);
  158.  
  159. TDEditor_TD[9] = TextDrawCreate(413.999786, 176.560180, "VEHICLE");
  160. TextDrawLetterSize(TDEditor_TD[9], 0.411998, 1.293866);
  161. TextDrawTextSize(TDEditor_TD[9], 466.399841, 0.000000);
  162. TextDrawAlignment(TDEditor_TD[9], 1);
  163. TextDrawColor(TDEditor_TD[9], -1);
  164. TextDrawUseBox(TDEditor_TD[9], 1);
  165. TextDrawBoxColor(TDEditor_TD[9], -256);
  166. TextDrawSetShadow(TDEditor_TD[9], 0);
  167. TextDrawSetOutline(TDEditor_TD[9], 0);
  168. TextDrawBackgroundColor(TDEditor_TD[9], 255);
  169. TextDrawFont(TDEditor_TD[9], 2);
  170. TextDrawSetProportional(TDEditor_TD[9], 1);
  171. TextDrawSetShadow(TDEditor_TD[9], 0);
  172.  
  173. TDEditor_TD[10] = TextDrawCreate(186.799880, 260.186737, "RANDOM_TUNING");
  174. TextDrawLetterSize(TDEditor_TD[10], 0.411998, 1.293866);
  175. TextDrawTextSize(TDEditor_TD[10], 318.399963, 12.000000);
  176. TextDrawAlignment(TDEditor_TD[10], 1);
  177. TextDrawColor(TDEditor_TD[10], -1);
  178. TextDrawUseBox(TDEditor_TD[10], 1);
  179. TextDrawBoxColor(TDEditor_TD[10], -256);
  180. TextDrawSetShadow(TDEditor_TD[10], 0);
  181. TextDrawSetOutline(TDEditor_TD[10], 0);
  182. TextDrawBackgroundColor(TDEditor_TD[10], 255);
  183. TextDrawFont(TDEditor_TD[10], 2);
  184. TextDrawSetProportional(TDEditor_TD[10], 1);
  185. TextDrawSetShadow(TDEditor_TD[10], 0);
  186. TextDrawSetSelectable(TDEditor_TD[10], true);
  187.  
  188. TDEditor_TD[11] = TextDrawCreate(393.999908, 179.546630, "box");
  189. TextDrawLetterSize(TDEditor_TD[11], 0.000000, 0.800000);
  190. TextDrawTextSize(TDEditor_TD[11], 500.399749, 0.000000);
  191. TextDrawAlignment(TDEditor_TD[11], 1);
  192. TextDrawColor(TDEditor_TD[11], -1);
  193. TextDrawUseBox(TDEditor_TD[11], 1);
  194. TextDrawBoxColor(TDEditor_TD[11], 255);
  195. TextDrawSetShadow(TDEditor_TD[11], 0);
  196. TextDrawSetOutline(TDEditor_TD[11], 0);
  197. TextDrawBackgroundColor(TDEditor_TD[11], 255);
  198. TextDrawFont(TDEditor_TD[11], 1);
  199. TextDrawSetProportional(TDEditor_TD[11], 1);
  200. TextDrawSetShadow(TDEditor_TD[11], 0);
  201.  
  202. TDEditor_TD[12] = TextDrawCreate(440.399902, 143.706726, "box");
  203. TextDrawLetterSize(TDEditor_TD[12], 0.000000, 23.439989);
  204. TextDrawTextSize(TDEditor_TD[12], 182.800033, 0.000000);
  205. TextDrawAlignment(TDEditor_TD[12], 1);
  206. TextDrawColor(TDEditor_TD[12], -1);
  207. TextDrawUseBox(TDEditor_TD[12], 1);
  208. TextDrawBoxColor(TDEditor_TD[12], 255);
  209. TextDrawSetShadow(TDEditor_TD[12], 0);
  210. TextDrawSetOutline(TDEditor_TD[12], 0);
  211. TextDrawBackgroundColor(TDEditor_TD[12], 255);
  212. TextDrawFont(TDEditor_TD[12], 1);
  213. TextDrawSetProportional(TDEditor_TD[12], 1);
  214. TextDrawSetShadow(TDEditor_TD[12], 0);
  215.  
  216. TDEditor_TD[13] = TextDrawCreate(211.599975, 160.880050, "box");
  217. TextDrawLetterSize(TDEditor_TD[13], 0.000000, 4.640003);
  218. TextDrawTextSize(TDEditor_TD[13], 266.799865, 30.000000);
  219. TextDrawAlignment(TDEditor_TD[13], 1);
  220. TextDrawColor(TDEditor_TD[13], -1);
  221. TextDrawUseBox(TDEditor_TD[13], 1);
  222. TextDrawBoxColor(TDEditor_TD[13], -1);
  223. TextDrawSetShadow(TDEditor_TD[13], 0);
  224. TextDrawSetOutline(TDEditor_TD[13], 0);
  225. TextDrawBackgroundColor(TDEditor_TD[13], 255);
  226. TextDrawFont(TDEditor_TD[13], 1);
  227. TextDrawSetProportional(TDEditor_TD[13], 1);
  228. TextDrawSetShadow(TDEditor_TD[13], 0);
  229. TextDrawSetSelectable(TDEditor_TD[13],true);
  230.  
  231. TDEditor_TD[14] = TextDrawCreate(194.800140, 125.039916, "VEHICLE_COLOR");
  232. TextDrawLetterSize(TDEditor_TD[14], 0.479200, 1.263998);
  233. TextDrawAlignment(TDEditor_TD[14], 1);
  234. TextDrawColor(TDEditor_TD[14], -1);
  235. TextDrawSetShadow(TDEditor_TD[14], 0);
  236. TextDrawSetOutline(TDEditor_TD[14], 0);
  237. TextDrawBackgroundColor(TDEditor_TD[14], 255);
  238. TextDrawFont(TDEditor_TD[14], 3);
  239. TextDrawSetProportional(TDEditor_TD[14], 1);
  240. TextDrawSetShadow(TDEditor_TD[14], 0);
  241.  
  242. TDEditor_TD[15] = TextDrawCreate(189.200057, 127.279853, "box");
  243. TextDrawLetterSize(TDEditor_TD[15], 0.000000, 1.120000);
  244. TextDrawTextSize(TDEditor_TD[15], 314.799713, 30.000000);
  245. TextDrawAlignment(TDEditor_TD[15], 1);
  246. TextDrawColor(TDEditor_TD[15], -1);
  247. TextDrawUseBox(TDEditor_TD[15], 1);
  248. TextDrawBoxColor(TDEditor_TD[15], 255);
  249. TextDrawSetShadow(TDEditor_TD[15], 0);
  250. TextDrawSetOutline(TDEditor_TD[15], 0);
  251. TextDrawBackgroundColor(TDEditor_TD[15], 255);
  252. TextDrawFont(TDEditor_TD[15], 2);
  253. TextDrawSetProportional(TDEditor_TD[15], 1);
  254. TextDrawSetShadow(TDEditor_TD[15], 0);
  255.  
  256. TDEditor_TD[16] = TextDrawCreate(372.399200, 127.279838, "box");
  257. TextDrawLetterSize(TDEditor_TD[16], 0.000000, 1.120000);
  258. TextDrawTextSize(TDEditor_TD[16], 433.198638, 30.000000);
  259. TextDrawAlignment(TDEditor_TD[16], 1);
  260. TextDrawColor(TDEditor_TD[16], -1);
  261. TextDrawUseBox(TDEditor_TD[16], 1);
  262. TextDrawBoxColor(TDEditor_TD[16], 255);
  263. TextDrawSetShadow(TDEditor_TD[16], 0);
  264. TextDrawSetOutline(TDEditor_TD[16], 0);
  265. TextDrawBackgroundColor(TDEditor_TD[16], 255);
  266. TextDrawFont(TDEditor_TD[16], 2);
  267. TextDrawSetProportional(TDEditor_TD[16], 1);
  268. TextDrawSetShadow(TDEditor_TD[16], 0);
  269.  
  270.  
  271. TDEditor_TD[17] = TextDrawCreate(387.600036, 125.786514, "exit");
  272. TextDrawLetterSize(TDEditor_TD[17], 0.479200, 1.263998);
  273. TextDrawTextSize(TDEditor_TD[17], 419.999847, 9.000000);
  274. TextDrawAlignment(TDEditor_TD[17], 1);
  275. TextDrawColor(TDEditor_TD[17], -1);
  276. TextDrawUseBox(TDEditor_TD[17], 1);
  277. TextDrawBoxColor(TDEditor_TD[17], -256);
  278. TextDrawSetShadow(TDEditor_TD[17], 0);
  279. TextDrawSetOutline(TDEditor_TD[17], 0);
  280. TextDrawBackgroundColor(TDEditor_TD[17], 255);
  281. TextDrawFont(TDEditor_TD[17], 3);
  282. TextDrawSetProportional(TDEditor_TD[17], 1);
  283. TextDrawSetShadow(TDEditor_TD[17], 0);
  284. TextDrawSetSelectable(TDEditor_TD[17], true);
  285.  
  286. TDEditor_TD[18] = TextDrawCreate(283.600036, 160.880035, "box");
  287. TextDrawLetterSize(TDEditor_TD[18], 0.000000, 4.640003);
  288. TextDrawTextSize(TDEditor_TD[18], 339.599914, 30.000000);
  289. TextDrawAlignment(TDEditor_TD[18], 1);
  290. TextDrawColor(TDEditor_TD[18], -1);
  291. TextDrawUseBox(TDEditor_TD[18], 1);
  292. TextDrawBoxColor(TDEditor_TD[18], -16776961);
  293. TextDrawSetShadow(TDEditor_TD[18], 0);
  294. TextDrawSetOutline(TDEditor_TD[18], 0);
  295. TextDrawBackgroundColor(TDEditor_TD[18], 255);
  296. TextDrawFont(TDEditor_TD[18], 1);
  297. TextDrawSetProportional(TDEditor_TD[18], 1);
  298. TextDrawSetShadow(TDEditor_TD[18], 0);
  299. TextDrawSetSelectable(TDEditor_TD[18],true);
  300.  
  301. TDEditor_TD[19] = TextDrawCreate(356.399871, 160.880035, "box");
  302. TextDrawLetterSize(TDEditor_TD[19], 0.000000, 4.640003);
  303. TextDrawTextSize(TDEditor_TD[19], 412.399749, 30.000000);
  304. TextDrawAlignment(TDEditor_TD[19], 1);
  305. TextDrawColor(TDEditor_TD[19], -1);
  306. TextDrawUseBox(TDEditor_TD[19], 1);
  307. TextDrawBoxColor(TDEditor_TD[19], -5963521);
  308. TextDrawSetShadow(TDEditor_TD[19], 0);
  309. TextDrawSetOutline(TDEditor_TD[19], 0);
  310. TextDrawBackgroundColor(TDEditor_TD[19], 255);
  311. TextDrawFont(TDEditor_TD[19], 1);
  312. TextDrawSetProportional(TDEditor_TD[19], 1);
  313. TextDrawSetShadow(TDEditor_TD[19], 0);
  314. TextDrawSetSelectable(TDEditor_TD[19],true);
  315.  
  316. TDEditor_TD[20] = TextDrawCreate(356.399871, 217.626770, "box");
  317. TextDrawLetterSize(TDEditor_TD[20], 0.000000, 4.640003);
  318. TextDrawTextSize(TDEditor_TD[20], 412.399749, 30.000000);
  319. TextDrawAlignment(TDEditor_TD[20], 1);
  320. TextDrawColor(TDEditor_TD[20], -1);
  321. TextDrawUseBox(TDEditor_TD[20], 1);
  322. TextDrawBoxColor(TDEditor_TD[20], -65281);
  323. TextDrawSetShadow(TDEditor_TD[20], 0);
  324. TextDrawSetOutline(TDEditor_TD[20], 0);
  325. TextDrawBackgroundColor(TDEditor_TD[20], 255);
  326. TextDrawFont(TDEditor_TD[20], 1);
  327. TextDrawSetProportional(TDEditor_TD[20], 1);
  328. TextDrawSetShadow(TDEditor_TD[20], 0);
  329. TextDrawSetSelectable(TDEditor_TD[20],true);
  330.  
  331. TDEditor_TD[21] = TextDrawCreate(355.599914, 272.880462, "box");
  332. TextDrawLetterSize(TDEditor_TD[21], 0.000000, 4.640003);
  333. TextDrawTextSize(TDEditor_TD[21], 411.599792, 30.000000);
  334. TextDrawAlignment(TDEditor_TD[21], 1);
  335. TextDrawColor(TDEditor_TD[21], -1);
  336. TextDrawUseBox(TDEditor_TD[21], 1);
  337. TextDrawBoxColor(TDEditor_TD[21], 16711935);
  338. TextDrawSetShadow(TDEditor_TD[21], 0);
  339. TextDrawSetOutline(TDEditor_TD[21], 0);
  340. TextDrawBackgroundColor(TDEditor_TD[21], 255);
  341. TextDrawFont(TDEditor_TD[21], 1);
  342. TextDrawSetProportional(TDEditor_TD[21], 1);
  343. TextDrawSetShadow(TDEditor_TD[21], 0);
  344. TextDrawSetSelectable(TDEditor_TD[21],true);
  345.  
  346. TDEditor_TD[22] = TextDrawCreate(283.600067, 216.880508, "box");
  347. TextDrawLetterSize(TDEditor_TD[22], 0.000000, 4.640003);
  348. TextDrawTextSize(TDEditor_TD[22], 339.599945, 30.000000);
  349. TextDrawAlignment(TDEditor_TD[22], 1);
  350. TextDrawColor(TDEditor_TD[22], -1);
  351. TextDrawUseBox(TDEditor_TD[22], 1);
  352. TextDrawBoxColor(TDEditor_TD[22], -1073807105);
  353. TextDrawSetShadow(TDEditor_TD[22], 0);
  354. TextDrawSetOutline(TDEditor_TD[22], 0);
  355. TextDrawBackgroundColor(TDEditor_TD[22], 255);
  356. TextDrawFont(TDEditor_TD[22], 1);
  357. TextDrawSetProportional(TDEditor_TD[22], 1);
  358. TextDrawSetShadow(TDEditor_TD[22], 0);
  359. TextDrawSetSelectable(TDEditor_TD[22],true);
  360.  
  361. TDEditor_TD[23] = TextDrawCreate(211.600082, 216.133895, "box");
  362. TextDrawLetterSize(TDEditor_TD[23], 0.000000, 4.640003);
  363. TextDrawTextSize(TDEditor_TD[23], 267.599884, 30.000000);
  364. TextDrawAlignment(TDEditor_TD[23], 1);
  365. TextDrawColor(TDEditor_TD[23], -1);
  366. TextDrawUseBox(TDEditor_TD[23], 1);
  367. TextDrawBoxColor(TDEditor_TD[23], 12582911);
  368. TextDrawSetShadow(TDEditor_TD[23], 0);
  369. TextDrawSetOutline(TDEditor_TD[23], 0);
  370. TextDrawBackgroundColor(TDEditor_TD[23], 255);
  371. TextDrawFont(TDEditor_TD[23], 1);
  372. TextDrawSetProportional(TDEditor_TD[23], 1);
  373. TextDrawSetShadow(TDEditor_TD[23], 0);
  374. TextDrawSetSelectable(TDEditor_TD[23],true);
  375.  
  376. TDEditor_TD[24] = TextDrawCreate(211.600067, 272.880798, "box");
  377. TextDrawLetterSize(TDEditor_TD[24], 0.000000, 4.640003);
  378. TextDrawTextSize(TDEditor_TD[24], 267.599945, 30.000000);
  379. TextDrawAlignment(TDEditor_TD[24], 1);
  380. TextDrawColor(TDEditor_TD[24], -1);
  381. TextDrawUseBox(TDEditor_TD[24], 1);
  382. TextDrawBoxColor(TDEditor_TD[24], -30488321);
  383. TextDrawSetShadow(TDEditor_TD[24], 0);
  384. TextDrawSetOutline(TDEditor_TD[24], 0);
  385. TextDrawBackgroundColor(TDEditor_TD[24], 255);
  386. TextDrawFont(TDEditor_TD[24], 1);
  387. TextDrawSetProportional(TDEditor_TD[24], 1);
  388. TextDrawSetShadow(TDEditor_TD[24], 0);
  389. TextDrawSetSelectable(TDEditor_TD[24],true);
  390.  
  391. TDEditor_TD[25] = TextDrawCreate(283.600189, 272.880798, "box");
  392. TextDrawLetterSize(TDEditor_TD[25], 0.000000, 4.640003);
  393. TextDrawTextSize(TDEditor_TD[25], 339.599975, 30.000000);
  394. TextDrawAlignment(TDEditor_TD[25], 1);
  395. TextDrawColor(TDEditor_TD[25], -1);
  396. TextDrawUseBox(TDEditor_TD[25], 1);
  397. TextDrawBoxColor(TDEditor_TD[25], -1708196097);
  398. TextDrawSetShadow(TDEditor_TD[25], 0);
  399. TextDrawSetOutline(TDEditor_TD[25], 0);
  400. TextDrawBackgroundColor(TDEditor_TD[25], 255);
  401. TextDrawFont(TDEditor_TD[13], 1);
  402. TextDrawSetProportional(TDEditor_TD[25], 1);
  403. TextDrawSetShadow(TDEditor_TD[25], 0);
  404. TextDrawSetSelectable(TDEditor_TD[25],true);
  405.  
  406. TDEditor_TD[26] = TextDrawCreate(247.600021, 334.106781, "enter_your_color");
  407. TextDrawLetterSize(TDEditor_TD[26], 0.456800, 1.323732);
  408. TextDrawTextSize(TDEditor_TD[26], 379.000183, 9.000000);
  409. TextDrawAlignment(TDEditor_TD[26], 1);
  410. TextDrawColor(TDEditor_TD[26], -1);
  411. TextDrawUseBox(TDEditor_TD[26], 1);
  412. TextDrawBoxColor(TDEditor_TD[26], -256);
  413. TextDrawSetShadow(TDEditor_TD[26], 0);
  414. TextDrawSetOutline(TDEditor_TD[26], 0);
  415. TextDrawBackgroundColor(TDEditor_TD[26], 255);
  416. TextDrawFont(TDEditor_TD[26], 3);
  417. TextDrawSetProportional(TDEditor_TD[26], 1);
  418. TextDrawSetShadow(TDEditor_TD[26], 0);
  419. TextDrawSetSelectable(TDEditor_TD[26], true);
  420. //WHEELS
  421. TDEditor_TD[27] = TextDrawCreate(150.000061, 167.599960, "box");
  422. TextDrawLetterSize(TDEditor_TD[27], 0.000000, 21.519992);
  423. TextDrawTextSize(TDEditor_TD[27], 496.399688, 0.000000);
  424. TextDrawAlignment(TDEditor_TD[27], 1);
  425. TextDrawColor(TDEditor_TD[27], -1);
  426. TextDrawUseBox(TDEditor_TD[27], 1);
  427. TextDrawBoxColor(TDEditor_TD[27], 255);
  428. TextDrawSetShadow(TDEditor_TD[27], 0);
  429. TextDrawSetOutline(TDEditor_TD[27], 0);
  430. TextDrawBackgroundColor(TDEditor_TD[27], 255);
  431. TextDrawFont(TDEditor_TD[27], 1);
  432. TextDrawSetProportional(TDEditor_TD[27], 1);
  433. TextDrawSetShadow(TDEditor_TD[27], 0);
  434.  
  435. TDEditor_TD[28] = TextDrawCreate(150.000015, 151.173355, "box");
  436. TextDrawLetterSize(TDEditor_TD[28], 0.000000, 0.959999);
  437. TextDrawTextSize(TDEditor_TD[28], 263.599853, 0.000000);
  438. TextDrawAlignment(TDEditor_TD[28], 1);
  439. TextDrawColor(TDEditor_TD[28], -1);
  440. TextDrawUseBox(TDEditor_TD[28], 1);
  441. TextDrawBoxColor(TDEditor_TD[28], 255);
  442. TextDrawSetShadow(TDEditor_TD[28], 0);
  443. TextDrawSetOutline(TDEditor_TD[28], 0);
  444. TextDrawBackgroundColor(TDEditor_TD[28], 255);
  445. TextDrawFont(TDEditor_TD[28], 1);
  446. TextDrawSetProportional(TDEditor_TD[28], 1);
  447. TextDrawSetShadow(TDEditor_TD[28], 0);
  448.  
  449. TDEditor_TD[29] = TextDrawCreate(179.599960, 149.679946, "Wheels");
  450. TextDrawLetterSize(TDEditor_TD[29], 0.439999, 1.166931);
  451. TextDrawAlignment(TDEditor_TD[29], 1);
  452. TextDrawColor(TDEditor_TD[29], -1);
  453. TextDrawSetShadow(TDEditor_TD[29], 0);
  454. TextDrawSetOutline(TDEditor_TD[29], 0);
  455. TextDrawBackgroundColor(TDEditor_TD[29], 255);
  456. TextDrawFont(TDEditor_TD[29], 3);
  457. TextDrawSetProportional(TDEditor_TD[29], 1);
  458. TextDrawSetShadow(TDEditor_TD[29], 0);
  459.  
  460. TDEditor_TD[30] = TextDrawCreate(417.200042, 151.173324, "box");
  461. TextDrawLetterSize(TDEditor_TD[30], 0.000000, 0.959999);
  462. TextDrawTextSize(TDEditor_TD[30], 494.799987, 0.000000);
  463. TextDrawAlignment(TDEditor_TD[30], 1);
  464. TextDrawColor(TDEditor_TD[30], -1);
  465. TextDrawUseBox(TDEditor_TD[30], 1);
  466. TextDrawBoxColor(TDEditor_TD[30], 255);
  467. TextDrawSetShadow(TDEditor_TD[30], 0);
  468. TextDrawSetOutline(TDEditor_TD[30], 0);
  469. TextDrawBackgroundColor(TDEditor_TD[30], 255);
  470. TextDrawFont(TDEditor_TD[30], 1);
  471. TextDrawSetProportional(TDEditor_TD[30], 1);
  472. TextDrawSetShadow(TDEditor_TD[30], 0);
  473.  
  474. TDEditor_TD[31] = TextDrawCreate(440.400146, 148.933288, "exit");
  475. TextDrawLetterSize(TDEditor_TD[31], 0.439999, 1.166931);
  476. TextDrawTextSize(TDEditor_TD[31], 468.600189, 9.000000);
  477. TextDrawAlignment(TDEditor_TD[31], 1);
  478. TextDrawColor(TDEditor_TD[31], -1);
  479. TextDrawSetShadow(TDEditor_TD[31], 0);
  480. TextDrawSetOutline(TDEditor_TD[31], 0);
  481. TextDrawBackgroundColor(TDEditor_TD[31], 255);
  482. TextDrawFont(TDEditor_TD[31], 3);
  483. TextDrawSetProportional(TDEditor_TD[31], 1);
  484. TextDrawSetShadow(TDEditor_TD[31], 0);
  485. TextDrawSetSelectable(TDEditor_TD[31],true);
  486.  
  487. TDEditor_TD[32] = TextDrawCreate(166.000045, 182.533233, "box");
  488. TextDrawLetterSize(TDEditor_TD[32], 0.000000, 4.639999);
  489. TextDrawTextSize(TDEditor_TD[32], 230.000000, 0.000000);
  490. TextDrawAlignment(TDEditor_TD[32], 1);
  491. TextDrawColor(TDEditor_TD[32], -1);
  492. TextDrawUseBox(TDEditor_TD[32], 1);
  493. TextDrawBoxColor(TDEditor_TD[32], -1378294017);
  494. TextDrawSetShadow(TDEditor_TD[32], 0);
  495. TextDrawSetOutline(TDEditor_TD[32], 0);
  496. TextDrawBackgroundColor(TDEditor_TD[32], 255);
  497. TextDrawFont(TDEditor_TD[32], 1);
  498. TextDrawSetProportional(TDEditor_TD[32], 1);
  499. TextDrawSetShadow(TDEditor_TD[32], 0);
  500.  
  501. TDEditor_TD[33] = TextDrawCreate(161.800094, 177.399963, "");
  502. TextDrawLetterSize(TDEditor_TD[33], 0.000000, 0.000000);
  503. TextDrawTextSize(TDEditor_TD[33], 70.799957, 51.919998);
  504. TextDrawAlignment(TDEditor_TD[33], 1);
  505. TextDrawColor(TDEditor_TD[33], -1);
  506. TextDrawSetShadow(TDEditor_TD[33], 0);
  507. TextDrawSetOutline(TDEditor_TD[33], 0);
  508. TextDrawBackgroundColor(TDEditor_TD[33], -256);
  509. TextDrawFont(TDEditor_TD[33], 5);
  510. TextDrawSetProportional(TDEditor_TD[33], 1);
  511. TextDrawSetShadow(TDEditor_TD[33], 0);
  512. TextDrawSetSelectable(TDEditor_TD[33], true);
  513. TextDrawSetPreviewModel(TDEditor_TD[33], 1073);
  514. TextDrawSetPreviewRot(TDEditor_TD[33], 0.000000, 0.000000, -90.000000, 1.000000);
  515. TextDrawSetSelectable(TDEditor_TD[33],true);
  516.  
  517. TDEditor_TD[34] = TextDrawCreate(247.600051, 182.533248, "box");
  518. TextDrawLetterSize(TDEditor_TD[34], 0.000000, 4.639999);
  519. TextDrawTextSize(TDEditor_TD[34], 311.599914, 0.000000);
  520. TextDrawAlignment(TDEditor_TD[34], 1);
  521. TextDrawColor(TDEditor_TD[34], -1);
  522. TextDrawUseBox(TDEditor_TD[34], 1);
  523. TextDrawBoxColor(TDEditor_TD[34], -1378294017);
  524. TextDrawSetShadow(TDEditor_TD[34], 0);
  525. TextDrawSetOutline(TDEditor_TD[34], 0);
  526. TextDrawBackgroundColor(TDEditor_TD[34], 255);
  527. TextDrawFont(TDEditor_TD[34], 1);
  528. TextDrawSetProportional(TDEditor_TD[34], 1);
  529. TextDrawSetShadow(TDEditor_TD[34], 0);
  530.  
  531. TDEditor_TD[35] = TextDrawCreate(330.000030, 182.533248, "box");
  532. TextDrawLetterSize(TDEditor_TD[35], 0.000000, 4.639999);
  533. TextDrawTextSize(TDEditor_TD[35], 393.999877, 0.000000);
  534. TextDrawAlignment(TDEditor_TD[35], 1);
  535. TextDrawColor(TDEditor_TD[35], -1);
  536. TextDrawUseBox(TDEditor_TD[35], 1);
  537. TextDrawBoxColor(TDEditor_TD[35], -1378294017);
  538. TextDrawSetShadow(TDEditor_TD[35], 0);
  539. TextDrawSetOutline(TDEditor_TD[35], 0);
  540. TextDrawBackgroundColor(TDEditor_TD[35], 255);
  541. TextDrawFont(TDEditor_TD[35], 1);
  542. TextDrawSetProportional(TDEditor_TD[35], 1);
  543. TextDrawSetShadow(TDEditor_TD[35], 0);
  544.  
  545. TDEditor_TD[36] = TextDrawCreate(414.000091, 182.533264, "box");
  546. TextDrawLetterSize(TDEditor_TD[36], 0.000000, 4.639999);
  547. TextDrawTextSize(TDEditor_TD[36], 477.999938, 0.000000);
  548. TextDrawAlignment(TDEditor_TD[36], 1);
  549. TextDrawColor(TDEditor_TD[36], -1);
  550. TextDrawUseBox(TDEditor_TD[36], 1);
  551. TextDrawBoxColor(TDEditor_TD[36], -1378294017);
  552. TextDrawSetShadow(TDEditor_TD[36], 0);
  553. TextDrawSetOutline(TDEditor_TD[36], 0);
  554. TextDrawBackgroundColor(TDEditor_TD[36], 255);
  555. TextDrawFont(TDEditor_TD[36], 1);
  556. TextDrawSetProportional(TDEditor_TD[36], 1);
  557. TextDrawSetShadow(TDEditor_TD[36], 0);
  558.  
  559. TDEditor_TD[37] = TextDrawCreate(414.000091, 239.280120, "box");
  560. TextDrawLetterSize(TDEditor_TD[37], 0.000000, 4.639999);
  561. TextDrawTextSize(TDEditor_TD[37], 477.999938, 0.000000);
  562. TextDrawAlignment(TDEditor_TD[37], 1);
  563. TextDrawColor(TDEditor_TD[37], -1);
  564. TextDrawUseBox(TDEditor_TD[37], 1);
  565. TextDrawBoxColor(TDEditor_TD[37], -1378294017);
  566. TextDrawSetShadow(TDEditor_TD[37], 0);
  567. TextDrawSetOutline(TDEditor_TD[37], 0);
  568. TextDrawBackgroundColor(TDEditor_TD[37], 255);
  569. TextDrawFont(TDEditor_TD[37], 1);
  570. TextDrawSetProportional(TDEditor_TD[37], 1);
  571. TextDrawSetShadow(TDEditor_TD[37], 0);
  572.  
  573. TDEditor_TD[38] = TextDrawCreate(330.800201, 239.280120, "box");
  574. TextDrawLetterSize(TDEditor_TD[38], 0.000000, 4.639999);
  575. TextDrawTextSize(TDEditor_TD[38], 394.800048, 0.000000);
  576. TextDrawAlignment(TDEditor_TD[38], 1);
  577. TextDrawColor(TDEditor_TD[38], -1);
  578. TextDrawUseBox(TDEditor_TD[38], 1);
  579. TextDrawBoxColor(TDEditor_TD[38], -1378294017);
  580. TextDrawSetShadow(TDEditor_TD[38], 0);
  581. TextDrawSetOutline(TDEditor_TD[38], 0);
  582. TextDrawBackgroundColor(TDEditor_TD[38], 255);
  583. TextDrawFont(TDEditor_TD[38], 1);
  584. TextDrawSetProportional(TDEditor_TD[38], 1);
  585. TextDrawSetShadow(TDEditor_TD[38], 0);
  586.  
  587. TDEditor_TD[39] = TextDrawCreate(247.600250, 239.280120, "box");
  588. TextDrawLetterSize(TDEditor_TD[39], 0.000000, 4.639999);
  589. TextDrawTextSize(TDEditor_TD[39], 311.600067, 0.000000);
  590. TextDrawAlignment(TDEditor_TD[39], 1);
  591. TextDrawColor(TDEditor_TD[39], -1);
  592. TextDrawUseBox(TDEditor_TD[39], 1);
  593. TextDrawBoxColor(TDEditor_TD[39], -1378294017);
  594. TextDrawSetShadow(TDEditor_TD[39], 0);
  595. TextDrawSetOutline(TDEditor_TD[39], 0);
  596. TextDrawBackgroundColor(TDEditor_TD[39], 255);
  597. TextDrawFont(TDEditor_TD[39], 1);
  598. TextDrawSetProportional(TDEditor_TD[39], 1);
  599. TextDrawSetShadow(TDEditor_TD[39], 0);
  600.  
  601. TDEditor_TD[40] = TextDrawCreate(165.200302, 240.773452, "box");
  602. TextDrawLetterSize(TDEditor_TD[40], 0.000000, 4.639999);
  603. TextDrawTextSize(TDEditor_TD[40], 229.200057, 0.000000);
  604. TextDrawAlignment(TDEditor_TD[40], 1);
  605. TextDrawColor(TDEditor_TD[40], -1);
  606. TextDrawUseBox(TDEditor_TD[40], 1);
  607. TextDrawBoxColor(TDEditor_TD[40], -1378294017);
  608. TextDrawSetShadow(TDEditor_TD[40], 0);
  609. TextDrawSetOutline(TDEditor_TD[40], 0);
  610. TextDrawBackgroundColor(TDEditor_TD[40], 255);
  611. TextDrawFont(TDEditor_TD[40], 1);
  612. TextDrawSetProportional(TDEditor_TD[40], 1);
  613. TextDrawSetShadow(TDEditor_TD[40], 0);
  614.  
  615. TDEditor_TD[41] = TextDrawCreate(165.200302, 297.520324, "box");
  616. TextDrawLetterSize(TDEditor_TD[41], 0.000000, 4.639999);
  617. TextDrawTextSize(TDEditor_TD[41], 229.200057, 0.000000);
  618. TextDrawAlignment(TDEditor_TD[41], 1);
  619. TextDrawColor(TDEditor_TD[41], -1);
  620. TextDrawUseBox(TDEditor_TD[41], 1);
  621. TextDrawBoxColor(TDEditor_TD[41], -1378294017);
  622. TextDrawSetShadow(TDEditor_TD[41], 0);
  623. TextDrawSetOutline(TDEditor_TD[41], 0);
  624. TextDrawBackgroundColor(TDEditor_TD[41], 255);
  625. TextDrawFont(TDEditor_TD[41], 1);
  626. TextDrawSetProportional(TDEditor_TD[41], 1);
  627. TextDrawSetShadow(TDEditor_TD[41], 0);
  628.  
  629. TDEditor_TD[42] = TextDrawCreate(247.600280, 297.520324, "box");
  630. TextDrawLetterSize(TDEditor_TD[42], 0.000000, 4.639999);
  631. TextDrawTextSize(TDEditor_TD[42], 311.600097, 0.000000);
  632. TextDrawAlignment(TDEditor_TD[42], 1);
  633. TextDrawColor(TDEditor_TD[42], -1);
  634. TextDrawUseBox(TDEditor_TD[42], 1);
  635. TextDrawBoxColor(TDEditor_TD[42], -1378294017);
  636. TextDrawSetShadow(TDEditor_TD[42], 0);
  637. TextDrawSetOutline(TDEditor_TD[42], 0);
  638. TextDrawBackgroundColor(TDEditor_TD[42], 255);
  639. TextDrawFont(TDEditor_TD[42], 1);
  640. TextDrawSetProportional(TDEditor_TD[42], 1);
  641. TextDrawSetShadow(TDEditor_TD[42], 0);
  642.  
  643. TDEditor_TD[43] = TextDrawCreate(330.800323, 297.520324, "box");
  644. TextDrawLetterSize(TDEditor_TD[43], 0.000000, 4.639999);
  645. TextDrawTextSize(TDEditor_TD[43], 394.800079, 0.000000);
  646. TextDrawAlignment(TDEditor_TD[43], 1);
  647. TextDrawColor(TDEditor_TD[43], -1);
  648. TextDrawUseBox(TDEditor_TD[43], 1);
  649. TextDrawBoxColor(TDEditor_TD[43], -1378294017);
  650. TextDrawSetShadow(TDEditor_TD[43], 0);
  651. TextDrawSetOutline(TDEditor_TD[43], 0);
  652. TextDrawBackgroundColor(TDEditor_TD[43], 255);
  653. TextDrawFont(TDEditor_TD[43], 1);
  654. TextDrawSetProportional(TDEditor_TD[43], 1);
  655. TextDrawSetShadow(TDEditor_TD[43], 0);
  656.  
  657. TDEditor_TD[44] = TextDrawCreate(414.000396, 297.520324, "box");
  658. TextDrawLetterSize(TDEditor_TD[44], 0.000000, 4.639999);
  659. TextDrawTextSize(TDEditor_TD[44], 478.000152, 0.000000);
  660. TextDrawAlignment(TDEditor_TD[44], 1);
  661. TextDrawColor(TDEditor_TD[44], -1);
  662. TextDrawUseBox(TDEditor_TD[44], 1);
  663. TextDrawBoxColor(TDEditor_TD[44], -1378294017);
  664. TextDrawSetShadow(TDEditor_TD[44], 0);
  665. TextDrawSetOutline(TDEditor_TD[44], 0);
  666. TextDrawBackgroundColor(TDEditor_TD[44], 255);
  667. TextDrawFont(TDEditor_TD[44], 1);
  668. TextDrawSetProportional(TDEditor_TD[44], 1);
  669. TextDrawSetShadow(TDEditor_TD[44], 0);
  670.  
  671. TDEditor_TD[45] = TextDrawCreate(243.400161, 177.399948, "");
  672. TextDrawLetterSize(TDEditor_TD[45], 0.000000, 0.000000);
  673. TextDrawTextSize(TDEditor_TD[45], 70.799957, 51.919998);
  674. TextDrawAlignment(TDEditor_TD[45], 1);
  675. TextDrawColor(TDEditor_TD[45], -1);
  676. TextDrawSetShadow(TDEditor_TD[45], 0);
  677. TextDrawSetOutline(TDEditor_TD[45], 0);
  678. TextDrawBackgroundColor(TDEditor_TD[45], -256);
  679. TextDrawFont(TDEditor_TD[45], 5);
  680. TextDrawSetProportional(TDEditor_TD[45], 1);
  681. TextDrawSetShadow(TDEditor_TD[45], 0);
  682. TextDrawSetSelectable(TDEditor_TD[45], true);
  683. TextDrawSetPreviewModel(TDEditor_TD[45], 1074);
  684. TextDrawSetPreviewRot(TDEditor_TD[45], 0.000000, 0.000000, -90.000000, 1.000000);
  685. TextDrawSetSelectable(TDEditor_TD[45],true);
  686.  
  687. TDEditor_TD[46] = TextDrawCreate(326.600158, 177.399948, "");
  688. TextDrawLetterSize(TDEditor_TD[46], 0.000000, 0.000000);
  689. TextDrawTextSize(TDEditor_TD[46], 70.799957, 51.919998);
  690. TextDrawAlignment(TDEditor_TD[46], 1);
  691. TextDrawColor(TDEditor_TD[46], -1);
  692. TextDrawSetShadow(TDEditor_TD[46], 0);
  693. TextDrawSetOutline(TDEditor_TD[46], 0);
  694. TextDrawBackgroundColor(TDEditor_TD[46], -256);
  695. TextDrawFont(TDEditor_TD[46], 5);
  696. TextDrawSetProportional(TDEditor_TD[46], 1);
  697. TextDrawSetShadow(TDEditor_TD[46], 0);
  698. TextDrawSetSelectable(TDEditor_TD[46], true);
  699. TextDrawSetPreviewModel(TDEditor_TD[46], 1075);
  700. TextDrawSetPreviewRot(TDEditor_TD[46], 0.000000, 0.000000, -90.000000, 1.000000);
  701. TextDrawSetSelectable(TDEditor_TD[46],true);
  702.  
  703. TDEditor_TD[47] = TextDrawCreate(410.600158, 177.399932, "");
  704. TextDrawLetterSize(TDEditor_TD[47], 0.000000, 0.000000);
  705. TextDrawTextSize(TDEditor_TD[47], 70.799957, 51.919998);
  706. TextDrawAlignment(TDEditor_TD[47], 1);
  707. TextDrawColor(TDEditor_TD[47], -1);
  708. TextDrawSetShadow(TDEditor_TD[47], 0);
  709. TextDrawSetOutline(TDEditor_TD[47], 0);
  710. TextDrawBackgroundColor(TDEditor_TD[47], -256);
  711. TextDrawFont(TDEditor_TD[47], 5);
  712. TextDrawSetProportional(TDEditor_TD[47], 1);
  713. TextDrawSetShadow(TDEditor_TD[47], 0);
  714. TextDrawSetSelectable(TDEditor_TD[47], true);
  715. TextDrawSetPreviewModel(TDEditor_TD[47], 1076);
  716. TextDrawSetPreviewRot(TDEditor_TD[47], 0.000000, 0.000000, -90.000000, 1.000000);
  717. TextDrawSetSelectable(TDEditor_TD[47],true);
  718.  
  719. TDEditor_TD[48] = TextDrawCreate(161.000106, 236.386627, "");
  720. TextDrawLetterSize(TDEditor_TD[48], 0.000000, 0.000000);
  721. TextDrawTextSize(TDEditor_TD[48], 70.799957, 51.919998);
  722. TextDrawAlignment(TDEditor_TD[48], 1);
  723. TextDrawColor(TDEditor_TD[48], -1);
  724. TextDrawSetShadow(TDEditor_TD[48], 0);
  725. TextDrawSetOutline(TDEditor_TD[48], 0);
  726. TextDrawBackgroundColor(TDEditor_TD[48], -256);
  727. TextDrawFont(TDEditor_TD[48], 5);
  728. TextDrawSetProportional(TDEditor_TD[48], 1);
  729. TextDrawSetShadow(TDEditor_TD[48], 0);
  730. TextDrawSetSelectable(TDEditor_TD[48], true);
  731. TextDrawSetPreviewModel(TDEditor_TD[48], 1078);
  732. TextDrawSetPreviewRot(TDEditor_TD[48], 0.000000, 0.000000, -90.000000, 1.000000);
  733. TextDrawSetSelectable(TDEditor_TD[48],true);
  734.  
  735. TDEditor_TD[49] = TextDrawCreate(243.400070, 234.146621, "");
  736. TextDrawLetterSize(TDEditor_TD[49], 0.000000, 0.000000);
  737. TextDrawTextSize(TDEditor_TD[49], 70.799957, 51.919998);
  738. TextDrawAlignment(TDEditor_TD[49], 1);
  739. TextDrawColor(TDEditor_TD[49], -1);
  740. TextDrawSetShadow(TDEditor_TD[49], 0);
  741. TextDrawSetOutline(TDEditor_TD[49], 0);
  742. TextDrawBackgroundColor(TDEditor_TD[49], -256);
  743. TextDrawFont(TDEditor_TD[49], 5);
  744. TextDrawSetProportional(TDEditor_TD[49], 1);
  745. TextDrawSetShadow(TDEditor_TD[49], 0);
  746. TextDrawSetSelectable(TDEditor_TD[49], true);
  747. TextDrawSetPreviewModel(TDEditor_TD[49], 1079);
  748. TextDrawSetPreviewRot(TDEditor_TD[49], 0.000000, 0.000000, -90.000000, 1.000000);
  749. TextDrawSetSelectable(TDEditor_TD[49],true);
  750.  
  751. TDEditor_TD[50] = TextDrawCreate(325.000183, 234.146621, "");
  752. TextDrawLetterSize(TDEditor_TD[50], 0.000000, 0.000000);
  753. TextDrawTextSize(TDEditor_TD[50], 70.799957, 51.919998);
  754. TextDrawAlignment(TDEditor_TD[50], 1);
  755. TextDrawColor(TDEditor_TD[50], -1);
  756. TextDrawSetShadow(TDEditor_TD[50], 0);
  757. TextDrawSetOutline(TDEditor_TD[50], 0);
  758. TextDrawBackgroundColor(TDEditor_TD[50], -256);
  759. TextDrawFont(TDEditor_TD[50], 5);
  760. TextDrawSetProportional(TDEditor_TD[50], 1);
  761. TextDrawSetShadow(TDEditor_TD[50], 0);
  762. TextDrawSetSelectable(TDEditor_TD[50], true);
  763. TextDrawSetPreviewModel(TDEditor_TD[50], 1080);
  764. TextDrawSetPreviewRot(TDEditor_TD[50], 0.000000, 0.000000, -90.000000, 1.000000);
  765. TextDrawSetSelectable(TDEditor_TD[50],true);
  766.  
  767. TDEditor_TD[51] = TextDrawCreate(409.000213, 234.146621, "");
  768. TextDrawLetterSize(TDEditor_TD[51], 0.000000, 0.000000);
  769. TextDrawTextSize(TDEditor_TD[51], 70.799957, 51.919998);
  770. TextDrawAlignment(TDEditor_TD[51], 1);
  771. TextDrawColor(TDEditor_TD[51], -1);
  772. TextDrawSetShadow(TDEditor_TD[51], 0);
  773. TextDrawSetOutline(TDEditor_TD[51], 0);
  774. TextDrawBackgroundColor(TDEditor_TD[51], -256);
  775. TextDrawFont(TDEditor_TD[51], 5);
  776. TextDrawSetProportional(TDEditor_TD[51], 1);
  777. TextDrawSetShadow(TDEditor_TD[51], 0);
  778. TextDrawSetSelectable(TDEditor_TD[51], true);
  779. TextDrawSetPreviewModel(TDEditor_TD[51], 1081);
  780. TextDrawSetPreviewRot(TDEditor_TD[51], 0.000000, 0.000000, -90.000000, 1.000000);
  781. TextDrawSetSelectable(TDEditor_TD[51],true);
  782.  
  783. TDEditor_TD[52] = TextDrawCreate(161.800231, 292.386810, "");
  784. TextDrawLetterSize(TDEditor_TD[52], 0.000000, 0.000000);
  785. TextDrawTextSize(TDEditor_TD[52], 70.799957, 51.919998);
  786. TextDrawAlignment(TDEditor_TD[52], 1);
  787. TextDrawColor(TDEditor_TD[52], -1);
  788. TextDrawSetShadow(TDEditor_TD[52], 0);
  789. TextDrawSetOutline(TDEditor_TD[52], 0);
  790. TextDrawBackgroundColor(TDEditor_TD[52], -256);
  791. TextDrawFont(TDEditor_TD[52], 5);
  792. TextDrawSetProportional(TDEditor_TD[52], 1);
  793. TextDrawSetShadow(TDEditor_TD[52], 0);
  794. TextDrawSetSelectable(TDEditor_TD[52], true);
  795. TextDrawSetPreviewModel(TDEditor_TD[52], 1082);
  796. TextDrawSetPreviewRot(TDEditor_TD[52], 0.000000, 0.000000, -90.000000, 1.000000);
  797. TextDrawSetSelectable(TDEditor_TD[52],true);
  798.  
  799. TDEditor_TD[53] = TextDrawCreate(244.200241, 292.386810, "");
  800. TextDrawLetterSize(TDEditor_TD[53], 0.000000, 0.000000);
  801. TextDrawTextSize(TDEditor_TD[53], 70.799957, 51.919998);
  802. TextDrawAlignment(TDEditor_TD[53], 1);
  803. TextDrawColor(TDEditor_TD[53], -1);
  804. TextDrawSetShadow(TDEditor_TD[53], 0);
  805. TextDrawSetOutline(TDEditor_TD[53], 0);
  806. TextDrawBackgroundColor(TDEditor_TD[53], -256);
  807. TextDrawFont(TDEditor_TD[53], 5);
  808. TextDrawSetProportional(TDEditor_TD[53], 1);
  809. TextDrawSetShadow(TDEditor_TD[53], 0);
  810. TextDrawSetSelectable(TDEditor_TD[53], true);
  811. TextDrawSetPreviewModel(TDEditor_TD[53], 1083);
  812. TextDrawSetPreviewRot(TDEditor_TD[53], 0.000000, 0.000000, -90.000000, 1.000000);
  813. TextDrawSetSelectable(TDEditor_TD[53],true);
  814.  
  815. TDEditor_TD[54] = TextDrawCreate(327.400177, 292.386810, "");
  816. TextDrawLetterSize(TDEditor_TD[54], 0.000000, 0.000000);
  817. TextDrawTextSize(TDEditor_TD[54], 70.799957, 51.919998);
  818. TextDrawAlignment(TDEditor_TD[54], 1);
  819. TextDrawColor(TDEditor_TD[54], -1);
  820. TextDrawSetShadow(TDEditor_TD[54], 0);
  821. TextDrawSetOutline(TDEditor_TD[54], 0);
  822. TextDrawBackgroundColor(TDEditor_TD[54], -256);
  823. TextDrawFont(TDEditor_TD[54], 5);
  824. TextDrawSetProportional(TDEditor_TD[54], 1);
  825. TextDrawSetShadow(TDEditor_TD[54], 0);
  826. TextDrawSetSelectable(TDEditor_TD[54], true);
  827. TextDrawSetPreviewModel(TDEditor_TD[54], 1084);
  828. TextDrawSetPreviewRot(TDEditor_TD[54], 0.000000, 0.000000, -90.000000, 1.000000);
  829. TextDrawSetSelectable(TDEditor_TD[54],true);
  830.  
  831. TDEditor_TD[55] = TextDrawCreate(410.600128, 292.386810, "");
  832. TextDrawLetterSize(TDEditor_TD[55], 0.000000, 0.000000);
  833. TextDrawTextSize(TDEditor_TD[55], 70.799957, 51.919998);
  834. TextDrawAlignment(TDEditor_TD[55], 1);
  835. TextDrawColor(TDEditor_TD[55], -1);
  836. TextDrawSetShadow(TDEditor_TD[55], 0);
  837. TextDrawSetOutline(TDEditor_TD[55], 0);
  838. TextDrawBackgroundColor(TDEditor_TD[55], -256);
  839. TextDrawFont(TDEditor_TD[55], 5);
  840. TextDrawSetProportional(TDEditor_TD[55], 1);
  841. TextDrawSetShadow(TDEditor_TD[55], 0);
  842. TextDrawSetSelectable(TDEditor_TD[55], true);
  843. TextDrawSetPreviewModel(TDEditor_TD[55], 1085);
  844. TextDrawSetPreviewRot(TDEditor_TD[55], 0.000000, 0.000000, -90.000000, 1.000000);
  845. TextDrawSetSelectable(TDEditor_TD[55],true);
  846.  
  847. for(new i = 0; i < MAX_PLAYERS; i++)
  848. {
  849. TDEditor_PTD[i][0] = TextDrawCreate(390.599792, 195.319946, "");
  850. TextDrawLetterSize(TDEditor_PTD[i][0], 0.000000, 0.000000);
  851. TextDrawTextSize(TDEditor_PTD[i][0], 113.199966, 78.800025);
  852. TextDrawAlignment(TDEditor_PTD[i][0], 1);
  853. TextDrawColor(TDEditor_PTD[i][0], -1);
  854. TextDrawSetShadow(TDEditor_PTD[i][0], 0);
  855. TextDrawSetOutline(TDEditor_PTD[i][0], 0);
  856. TextDrawBackgroundColor(TDEditor_PTD[i][0], -1378294017);
  857. TextDrawFont(TDEditor_PTD[i][0], 5);
  858. TextDrawSetProportional(TDEditor_PTD[i][0], 1);
  859. TextDrawSetShadow(TDEditor_PTD[i][0], 0);
  860. TextDrawSetPreviewModel(TDEditor_PTD[i][0], 495);
  861. TextDrawSetPreviewRot(TDEditor_PTD[i][0], 1.000000, 0.000000, -35.000000, 1.000000);
  862. TextDrawSetPreviewVehCol(TDEditor_PTD[i][0], 3, 3);
  863. }
  864. return 1;
  865. }
  866.  
  867. public OnFilterScriptExit()
  868. {
  869. return 1;
  870. }
  871.  
  872. #else
  873.  
  874. main()
  875. {
  876. print("\n----------------------------------");
  877. print("");
  878. print("----------------------------------\n");
  879. }
  880.  
  881. #endif
  882.  
  883. public OnGameModeInit()
  884. {
  885. return 1;
  886. }
  887.  
  888. public OnGameModeExit()
  889. {
  890. return 1;
  891. }
  892.  
  893. public OnPlayerRequestClass(playerid, classid)
  894. {
  895. return 1;
  896. }
  897.  
  898. public OnPlayerConnect(playerid)
  899. {
  900. return 1;
  901. }
  902.  
  903. public OnPlayerDisconnect(playerid, reason)
  904. {
  905. return 1;
  906. }
  907.  
  908. public OnPlayerSpawn(playerid)
  909. {
  910. return 1;
  911. }
  912.  
  913. public OnPlayerDeath(playerid, killerid, reason)
  914. {
  915. return 1;
  916. }
  917.  
  918. public OnVehicleSpawn(vehicleid)
  919. {
  920. return 1;
  921. }
  922.  
  923. public OnVehicleDeath(vehicleid, killerid)
  924. {
  925. return 1;
  926. }
  927.  
  928. public OnPlayerText(playerid, text[])
  929. {
  930. return 1;
  931. }
  932.  
  933. public OnPlayerCommandText(playerid, cmdtext[])
  934. {
  935. if(strcmp("/tune", cmdtext, true, 10) == 0)
  936. {
  937. if(IsPlayerInAnyVehicle(playerid))
  938. {
  939. for(new i = 0; i < 12; i++)
  940. {
  941. new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
  942. TextDrawSetPreviewModel(TDEditor_PTD[playerid][0], veh);
  943. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  944. TextDrawShowForPlayer(playerid,TDEditor_TD[i]);
  945. SelectTextDraw(playerid,0xFFBF00FF);
  946. }
  947. }
  948. else
  949. {
  950. SendClientMessage(playerid,-1,"You must be in vehicle.");
  951. }
  952. return 1;
  953. }
  954. if(strcmp("/vehicle", cmdtext, true, 8) == 0)
  955. {
  956. new Float:x,Float:y,Float:z,Float:a;
  957. GetPlayerPos(playerid,x,y,z);
  958. GetPlayerFacingAngle(playerid,a);
  959. CreateVehicle(560, x, y+2, z, a, 0,0, 600);
  960. return 1;
  961. }
  962. return 0;
  963. }
  964.  
  965. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  966. {
  967. return 1;
  968. }
  969.  
  970. public OnPlayerExitVehicle(playerid, vehicleid)
  971. {
  972. return 1;
  973. }
  974.  
  975. public OnPlayerStateChange(playerid, newstate, oldstate)
  976. {
  977. return 1;
  978. }
  979.  
  980. public OnPlayerEnterCheckpoint(playerid)
  981. {
  982. return 1;
  983. }
  984.  
  985. public OnPlayerLeaveCheckpoint(playerid)
  986. {
  987. return 1;
  988. }
  989.  
  990. public OnPlayerEnterRaceCheckpoint(playerid)
  991. {
  992. return 1;
  993. }
  994.  
  995. public OnPlayerLeaveRaceCheckpoint(playerid)
  996. {
  997. return 1;
  998. }
  999.  
  1000. public OnRconCommand(cmd[])
  1001. {
  1002. return 1;
  1003. }
  1004.  
  1005. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  1006. {
  1007. if(clickedid == TDEditor_TD[4])
  1008. {
  1009. for(new i = 0; i < 12; i++)
  1010. {
  1011. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1012. TextDrawHideForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1013. CancelSelectTextDraw(playerid);
  1014. }
  1015. }
  1016. if(clickedid == TDEditor_TD[5])
  1017. {
  1018. for(new s = 0; s < 12; s++)
  1019. {
  1020. CancelSelectTextDraw(playerid);
  1021. TextDrawHideForPlayer(playerid,TDEditor_TD[s]);
  1022. TextDrawHideForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1023. }
  1024. for(new i = 12; i < 27; i++)
  1025. {
  1026. TextDrawShowForPlayer(playerid,TDEditor_TD[i]);
  1027. SelectTextDraw(playerid,0xFFBF00FF);
  1028. }
  1029. }
  1030. if(clickedid == TDEditor_TD[26])
  1031. {
  1032. ShowPlayerDialog(playerid,VEHCOLOR,DIALOG_STYLE_INPUT,"Color","Enter your vehicle color:","Ok","Exit");
  1033. }
  1034. if(clickedid == TDEditor_TD[18])
  1035. {
  1036. ChangeVehicleColor(GetPlayerVehicleID(playerid), 3,3);
  1037. SendClientMessage(playerid,-1,"Color changed.");
  1038. for(new i = 12; i < 27; i++)
  1039. {
  1040. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1041. CancelSelectTextDraw(playerid);
  1042. }
  1043. for(new s = 0; s < 12; s++)
  1044. {
  1045. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1046. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1047. SelectTextDraw(playerid,0xFFBF00FF);
  1048. }
  1049. }
  1050. if(clickedid == TDEditor_TD[19])
  1051. {
  1052. ChangeVehicleColor(GetPlayerVehicleID(playerid), 6,6);
  1053. SendClientMessage(playerid,-1,"Color changed.");
  1054. for(new i = 12; i < 27; i++)
  1055. {
  1056. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1057. CancelSelectTextDraw(playerid);
  1058. }
  1059. for(new s = 0; s < 12; s++)
  1060. {
  1061. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1062. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1063. SelectTextDraw(playerid,0xFFBF00FF);
  1064. }
  1065. }
  1066. if(clickedid == TDEditor_TD[20])
  1067. {
  1068. ChangeVehicleColor(GetPlayerVehicleID(playerid), 194,194);
  1069. SendClientMessage(playerid,-1,"Color changed.");
  1070. for(new i = 12; i < 27; i++)
  1071. {
  1072. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1073. CancelSelectTextDraw(playerid);
  1074. }
  1075. for(new s = 0; s < 12; s++)
  1076. {
  1077. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1078. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1079. SelectTextDraw(playerid,0xFFBF00FF);
  1080. }
  1081. }
  1082. if(clickedid == TDEditor_TD[21])
  1083. {
  1084. ChangeVehicleColor(GetPlayerVehicleID(playerid), 128,128);
  1085. SendClientMessage(playerid,-1,"Color changed.");
  1086. for(new i = 12; i < 27; i++)
  1087. {
  1088. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1089. CancelSelectTextDraw(playerid);
  1090. }
  1091. for(new s = 0; s < 12; s++)
  1092. {
  1093. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1094. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1095. SelectTextDraw(playerid,0xFFBF00FF);
  1096. }
  1097. }
  1098. if(clickedid == TDEditor_TD[22])
  1099. {
  1100. ChangeVehicleColor(GetPlayerVehicleID(playerid), 226,226);
  1101. SendClientMessage(playerid,-1,"Color changed.");
  1102. for(new i = 12; i < 27; i++)
  1103. {
  1104. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1105. CancelSelectTextDraw(playerid);
  1106. }
  1107. for(new s = 0; s < 12; s++)
  1108. {
  1109. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1110. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1111. SelectTextDraw(playerid,0xFFBF00FF);
  1112. }
  1113. }
  1114. if(clickedid == TDEditor_TD[23])
  1115. {
  1116. ChangeVehicleColor(GetPlayerVehicleID(playerid), 2,2);
  1117. SendClientMessage(playerid,-1,"Color changed.");
  1118. for(new i = 12; i < 27; i++)
  1119. {
  1120. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1121. CancelSelectTextDraw(playerid);
  1122. }
  1123. for(new s = 0; s < 12; s++)
  1124. {
  1125. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1126. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1127. SelectTextDraw(playerid,0xFFBF00FF);
  1128. }
  1129. }
  1130. if(clickedid == TDEditor_TD[24])
  1131. {
  1132. ChangeVehicleColor(GetPlayerVehicleID(playerid), 126,126);
  1133. SendClientMessage(playerid,-1,"Color changed.");
  1134. for(new i = 12; i < 27; i++)
  1135. {
  1136. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1137. CancelSelectTextDraw(playerid);
  1138. }
  1139. for(new s = 0; s < 12; s++)
  1140. {
  1141. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1142. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1143. SelectTextDraw(playerid,0xFFBF00FF);
  1144. }
  1145. }
  1146. if(clickedid == TDEditor_TD[25])
  1147. {
  1148. ChangeVehicleColor(GetPlayerVehicleID(playerid), 167,167);
  1149. SendClientMessage(playerid,-1,"Color changed.");
  1150. for(new i = 12; i < 27; i++)
  1151. {
  1152. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1153. CancelSelectTextDraw(playerid);
  1154. }
  1155. for(new s = 0; s < 12; s++)
  1156. {
  1157. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1158. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1159. SelectTextDraw(playerid,0xFFBF00FF);
  1160. }
  1161. }
  1162. if(clickedid == TDEditor_TD[13])
  1163. {
  1164. ChangeVehicleColor(GetPlayerVehicleID(playerid), 1,1);
  1165. SendClientMessage(playerid,-1,"Color changed.");
  1166. for(new i = 12; i < 27; i++)
  1167. {
  1168. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1169. CancelSelectTextDraw(playerid);
  1170. }
  1171. for(new s = 0; s < 12; s++)
  1172. {
  1173. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1174. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1175. SelectTextDraw(playerid,0xFFBF00FF);
  1176. }
  1177. }
  1178. if(clickedid == TDEditor_TD[17])
  1179. {
  1180. for(new i = 12; i < 27; i++)
  1181. {
  1182. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1183. CancelSelectTextDraw(playerid);
  1184. }
  1185. for(new s = 0; s < 12; s++)
  1186. {
  1187. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1188. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1189. SelectTextDraw(playerid,0xFFBF00FF);
  1190. }
  1191. }
  1192. if(clickedid == TDEditor_TD[7])
  1193. {
  1194. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  1195. SendClientMessage(playerid,-1,"Hydraulic system added.");
  1196. }
  1197. if(clickedid == TDEditor_TD[8])
  1198. {
  1199. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  1200. SendClientMessage(playerid,-1,"Nitro added.");
  1201. }
  1202. if(clickedid == TDEditor_TD[6])
  1203. {
  1204. for(new s = 0; s < 12; s++)
  1205. {
  1206. TextDrawHideForPlayer(playerid,TDEditor_TD[s]);
  1207. TextDrawHideForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1208. CancelSelectTextDraw(playerid);
  1209. }
  1210. for(new i = 27; i < 56; i++)
  1211. {
  1212. TextDrawShowForPlayer(playerid,TDEditor_TD[i]);
  1213. SelectTextDraw(playerid,0xFFBF00FF);
  1214. }
  1215. }
  1216. if(clickedid == TDEditor_TD[33])
  1217. {
  1218. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  1219. SendClientMessage(playerid,-1,"Wheels added.");
  1220. for(new i = 27; i < 56; i++)
  1221. {
  1222. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1223. CancelSelectTextDraw(playerid);
  1224. }
  1225. for(new s = 0; s < 12; s++)
  1226. {
  1227. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1228. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1229. SelectTextDraw(playerid,0xFFBF00FF);
  1230. }
  1231. }
  1232. if(clickedid == TDEditor_TD[45])
  1233. {
  1234. AddVehicleComponent(GetPlayerVehicleID(playerid),1074);
  1235. SendClientMessage(playerid,-1,"Wheels added.");
  1236. for(new i = 27; i < 56; i++)
  1237. {
  1238. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1239. CancelSelectTextDraw(playerid);
  1240. }
  1241. for(new s = 0; s < 12; s++)
  1242. {
  1243. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1244. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1245. SelectTextDraw(playerid,0xFFBF00FF);
  1246. }
  1247. }
  1248. if(clickedid == TDEditor_TD[46])
  1249. {
  1250. AddVehicleComponent(GetPlayerVehicleID(playerid),1075);
  1251. SendClientMessage(playerid,-1,"Wheels added.");
  1252. for(new i = 27; i < 56; i++)
  1253. {
  1254. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1255. CancelSelectTextDraw(playerid);
  1256. }
  1257. for(new s = 0; s < 12; s++)
  1258. {
  1259. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1260. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1261. SelectTextDraw(playerid,0xFFBF00FF);
  1262. }
  1263. }
  1264. if(clickedid == TDEditor_TD[47])
  1265. {
  1266. AddVehicleComponent(GetPlayerVehicleID(playerid),1076);
  1267. SendClientMessage(playerid,-1,"Wheels added.");
  1268. for(new i = 27; i < 56; i++)
  1269. {
  1270. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1271. CancelSelectTextDraw(playerid);
  1272. }
  1273. for(new s = 0; s < 12; s++)
  1274. {
  1275. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1276. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1277. SelectTextDraw(playerid,0xFFBF00FF);
  1278. }
  1279. }
  1280. if(clickedid == TDEditor_TD[48])
  1281. {
  1282. AddVehicleComponent(GetPlayerVehicleID(playerid),1078);
  1283. SendClientMessage(playerid,-1,"Wheels added.");
  1284. for(new i = 27; i < 56; i++)
  1285. {
  1286. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1287. CancelSelectTextDraw(playerid);
  1288. }
  1289. for(new s = 0; s < 12; s++)
  1290. {
  1291. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1292. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1293. SelectTextDraw(playerid,0xFFBF00FF);
  1294. }
  1295. }
  1296. if(clickedid == TDEditor_TD[49])
  1297. {
  1298. AddVehicleComponent(GetPlayerVehicleID(playerid),1079);
  1299. SendClientMessage(playerid,-1,"Wheels added.");
  1300. for(new i = 27; i < 56; i++)
  1301. {
  1302. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1303. CancelSelectTextDraw(playerid);
  1304. }
  1305. for(new s = 0; s < 12; s++)
  1306. {
  1307. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1308. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1309. SelectTextDraw(playerid,0xFFBF00FF);
  1310. }
  1311. }
  1312. if(clickedid == TDEditor_TD[50])
  1313. {
  1314. AddVehicleComponent(GetPlayerVehicleID(playerid),1080);
  1315. SendClientMessage(playerid,-1,"Wheels added.");
  1316. for(new i = 27; i < 56; i++)
  1317. {
  1318. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1319. CancelSelectTextDraw(playerid);
  1320. }
  1321. for(new s = 0; s < 12; s++)
  1322. {
  1323. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1324. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1325. SelectTextDraw(playerid,0xFFBF00FF);
  1326. }
  1327. }
  1328. if(clickedid == TDEditor_TD[51])
  1329. {
  1330. AddVehicleComponent(GetPlayerVehicleID(playerid),1081);
  1331. SendClientMessage(playerid,-1,"Wheels added.");
  1332. for(new i = 27; i < 56; i++)
  1333. {
  1334. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1335. CancelSelectTextDraw(playerid);
  1336. }
  1337. for(new s = 0; s < 12; s++)
  1338. {
  1339. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1340. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1341. SelectTextDraw(playerid,0xFFBF00FF);
  1342. }
  1343. }
  1344. if(clickedid == TDEditor_TD[52])
  1345. {
  1346. AddVehicleComponent(GetPlayerVehicleID(playerid),1082);
  1347. SendClientMessage(playerid,-1,"Wheels added.");
  1348. for(new i = 27; i < 56; i++)
  1349. {
  1350. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1351. CancelSelectTextDraw(playerid);
  1352. }
  1353. for(new s = 0; s < 12; s++)
  1354. {
  1355. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1356. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1357. SelectTextDraw(playerid,0xFFBF00FF);
  1358. }
  1359. }
  1360. if(clickedid == TDEditor_TD[53])
  1361. {
  1362. AddVehicleComponent(GetPlayerVehicleID(playerid),1083);
  1363. SendClientMessage(playerid,-1,"Wheels added.");
  1364. for(new i = 27; i < 56; i++)
  1365. {
  1366. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1367. CancelSelectTextDraw(playerid);
  1368. }
  1369. for(new s = 0; s < 12; s++)
  1370. {
  1371. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1372. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1373. SelectTextDraw(playerid,0xFFBF00FF);
  1374. }
  1375. }
  1376. if(clickedid == TDEditor_TD[54])
  1377. {
  1378. AddVehicleComponent(GetPlayerVehicleID(playerid),1084);
  1379. SendClientMessage(playerid,-1,"Wheels added.");
  1380. for(new i = 27; i < 56; i++)
  1381. {
  1382. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1383. CancelSelectTextDraw(playerid);
  1384. }
  1385. for(new s = 0; s < 12; s++)
  1386. {
  1387. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1388. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1389. SelectTextDraw(playerid,0xFFBF00FF);
  1390. }
  1391. }
  1392. if(clickedid == TDEditor_TD[55])
  1393. {
  1394. AddVehicleComponent(GetPlayerVehicleID(playerid),1085);
  1395. SendClientMessage(playerid,-1,"Wheels added.");
  1396. for(new i = 27; i < 56; i++)
  1397. {
  1398. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1399. CancelSelectTextDraw(playerid);
  1400. }
  1401. for(new s = 0; s < 12; s++)
  1402. {
  1403. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1404. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1405. SelectTextDraw(playerid,0xFFBF00FF);
  1406. }
  1407. }
  1408. if(clickedid == TDEditor_TD[31])
  1409. {
  1410. for(new i = 27; i < 56; i++)
  1411. {
  1412. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1413. CancelSelectTextDraw(playerid);
  1414. }
  1415. for(new s = 0; s < 12; s++)
  1416. {
  1417. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1418. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1419. SelectTextDraw(playerid,0xFFBF00FF);
  1420. }
  1421. }
  1422. if(clickedid == TDEditor_TD[10])
  1423. {
  1424. new s = GetVehicleModel(GetPlayerVehicleID(playerid));
  1425. RandomTuning(playerid,s);
  1426. }
  1427. return 1;
  1428. }
  1429.  
  1430. public OnPlayerRequestSpawn(playerid)
  1431. {
  1432. return 1;
  1433. }
  1434.  
  1435. public OnObjectMoved(objectid)
  1436. {
  1437. return 1;
  1438. }
  1439.  
  1440. public OnPlayerObjectMoved(playerid, objectid)
  1441. {
  1442. return 1;
  1443. }
  1444.  
  1445. public OnPlayerPickUpPickup(playerid, pickupid)
  1446. {
  1447. return 1;
  1448. }
  1449.  
  1450. public OnVehicleMod(playerid, vehicleid, componentid)
  1451. {
  1452. return 1;
  1453. }
  1454.  
  1455. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1456. {
  1457. return 1;
  1458. }
  1459.  
  1460. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1461. {
  1462. return 1;
  1463. }
  1464.  
  1465. public OnPlayerSelectedMenuRow(playerid, row)
  1466. {
  1467. return 1;
  1468. }
  1469.  
  1470. public OnPlayerExitedMenu(playerid)
  1471. {
  1472. return 1;
  1473. }
  1474.  
  1475. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1476. {
  1477. return 1;
  1478. }
  1479.  
  1480. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1481. {
  1482. return 1;
  1483. }
  1484.  
  1485. public OnRconLoginAttempt(ip[], password[], success)
  1486. {
  1487. return 1;
  1488. }
  1489.  
  1490. public OnPlayerUpdate(playerid)
  1491. {
  1492. return 1;
  1493. }
  1494.  
  1495. public OnPlayerStreamIn(playerid, forplayerid)
  1496. {
  1497. return 1;
  1498. }
  1499.  
  1500. public OnPlayerStreamOut(playerid, forplayerid)
  1501. {
  1502. return 1;
  1503. }
  1504.  
  1505. public OnVehicleStreamIn(vehicleid, forplayerid)
  1506. {
  1507. return 1;
  1508. }
  1509.  
  1510. public OnVehicleStreamOut(vehicleid, forplayerid)
  1511. {
  1512. return 1;
  1513. }
  1514.  
  1515. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1516. {
  1517. if(dialogid == VEHCOLOR)
  1518. {
  1519. if(response)
  1520. {
  1521. SendClientMessage(playerid,-1,"Color changed.");
  1522. ChangeVehicleColor(GetPlayerVehicleID(playerid),strval(inputtext),strval(inputtext));
  1523. for(new i = 12; i < 27; i++)
  1524. {
  1525. TextDrawHideForPlayer(playerid,TDEditor_TD[i]);
  1526. CancelSelectTextDraw(playerid);
  1527. }
  1528. for(new s = 0; s < 12; s++)
  1529. {
  1530. TextDrawShowForPlayer(playerid,TDEditor_TD[s]);
  1531. TextDrawShowForPlayer(playerid,TDEditor_PTD[playerid][0]);
  1532. SelectTextDraw(playerid,0xFFBF00FF);
  1533. }
  1534. }
  1535. }
  1536. return 1;
  1537. }
  1538.  
  1539. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1540. {
  1541. return 1;
  1542. }
  1543. stock randomm(min, max)
  1544. {
  1545. new rand = random(max-min)+min;
  1546. return rand;
  1547. }
  1548.  
  1549. stock RandomTuning(playerid,vehiclemodel)
  1550. {
  1551. new vehicle = GetPlayerVehicleID(playerid);
  1552. if(vehiclemodel == 560)
  1553. {
  1554. new gume = randomm(1074,1086);
  1555. AddVehicleComponent(vehicle,gume);
  1556. new sideskirt = randomm(1026,1028);
  1557. AddVehicleComponent(vehicle,sideskirt);
  1558. new sideskirtt = randomm(1030,1032);
  1559. AddVehicleComponent(vehicle,sideskirtt);
  1560. new exh = randomm(1028,1030);
  1561. AddVehicleComponent(vehicle,exh);
  1562. new roof = randomm(1032,1034);
  1563. AddVehicleComponent(vehicle,roof);
  1564. new spojler = randomm(1138,1140);
  1565. AddVehicleComponent(vehicle,spojler);
  1566. new bumber = randomm(1140,1142);
  1567. AddVehicleComponent(vehicle,bumber);
  1568. new bumberr = randomm(1169,1171);
  1569. AddVehicleComponent(vehicle,bumberr);
  1570. AddVehicleComponent(vehicle,1010);
  1571. AddVehicleComponent(vehicle,1087);
  1572. new boja = randomm(0,256);
  1573. ChangeVehicleColor(vehicle,boja,boja);
  1574. }
  1575. else
  1576. {
  1577. new wheels = randomm(1074,1086);
  1578. AddVehicleComponent(vehicle,wheels);
  1579. AddVehicleComponent(vehicle,1010);
  1580. AddVehicleComponent(vehicle,1087);
  1581. new color = randomm(0,256);
  1582. ChangeVehicleColor(vehicle,color,color);
  1583. }
  1584. return 1;
  1585. }
Advertisement
Add Comment
Please, Sign In to add comment