Guest User

sppedo

a guest
Feb 6th, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.99 KB | None | 0 0
  1. Hello
  2.  
  3. I founded this speedo filterscript but the speedo is a little big .
  4.  
  5. how i can make it smaler .
  6.  
  7. [IMG]http://imageshack.us/a/img812/7292/5ki3.png[/IMG]
  8.  
  9. [CODE]// Clock speedometer v1.0 by Daddy Yankee.
  10. // Do NOT re-release.
  11. #define FILTERSCRIPT
  12. #include <a_samp>
  13.  
  14. forward CreateSpeedo(playerid);
  15. forward DestroySpeedo(playerid);
  16. forward CheckGas();
  17.  
  18. new PlayerText:speedo1[MAX_PLAYERS];
  19. new PlayerText:speedo2[MAX_PLAYERS];
  20. new PlayerText:LinesBig[MAX_PLAYERS][14];
  21. new PlayerText:MPH[MAX_PLAYERS][14];
  22. new PlayerText:Dots[MAX_PLAYERS][21];
  23. new PlayerText:kmh[MAX_PLAYERS][11];
  24. new PlayerText:MPHT[MAX_PLAYERS];
  25. new PlayerText:kmhT[MAX_PLAYERS];
  26. new PlayerText:LinesSmall[MAX_PLAYERS][13];
  27. new PlayerText:Spee[MAX_PLAYERS][14];
  28. new PlayerText:Spee2[MAX_PLAYERS][4];
  29. new PlayerText:fuel3[MAX_PLAYERS];
  30. new PlayerText:fuel1[MAX_PLAYERS];
  31. new PlayerText:fuel2[MAX_PLAYERS];
  32. new PlayerText:FuelBar[MAX_PLAYERS][7];
  33. new PlayerText:LinesFuel[MAX_PLAYERS][8];
  34. new PlayerText:Circles[MAX_PLAYERS][8];
  35. new Float:oldspeed[MAX_PLAYERS];
  36.  
  37. new Gas[MAX_VEHICLES];
  38. new checkgastimer;
  39.  
  40.  
  41. public CreateSpeedo(playerid)
  42. {
  43. new vehid = GetPlayerVehicleID(playerid);
  44. speedo2[playerid] = CreatePlayerTextDraw(playerid, 368.000000, 253.000000+35.0, "_");
  45. PlayerTextDrawFont(playerid, speedo2[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  46. PlayerTextDrawBackgroundColor(playerid, speedo2[playerid], 0x00000000);
  47. PlayerTextDrawSetPreviewModel(playerid, speedo2[playerid], 19159);
  48. PlayerTextDrawTextSize(playerid, speedo2[playerid], 165.0, 175.0);
  49. PlayerTextDrawSetPreviewRot(playerid, speedo2[playerid], 90.0, 0.0, 0.0, 0.505);
  50. PlayerTextDrawColor(playerid, speedo2[playerid], 0x00000055);
  51. speedo1[playerid] = CreatePlayerTextDraw(playerid, 368.000000, 253.000000+35.0, "_");
  52. PlayerTextDrawFont(playerid, speedo1[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  53. PlayerTextDrawBackgroundColor(playerid, speedo1[playerid], 0x00000000);
  54. PlayerTextDrawSetPreviewModel(playerid, speedo1[playerid], 19159);
  55. PlayerTextDrawTextSize(playerid, speedo1[playerid], 165.0, 175.0);
  56. PlayerTextDrawSetPreviewRot(playerid, speedo1[playerid], 90.0, 0.0, 0.0, 4.2);
  57. PlayerTextDrawColor(playerid, speedo1[playerid], 0x000000FF);
  58. PlayerTextDrawShow(playerid, speedo1[playerid]);
  59. PlayerTextDrawShow(playerid, speedo2[playerid]);
  60. Circles[playerid][0] = CreatePlayerTextDraw(playerid, 358.000000, 280.000000, "hud:radardisc");
  61. PlayerTextDrawFont(playerid, Circles[playerid][0], 4);
  62. PlayerTextDrawLetterSize(playerid, Circles[playerid][0], 0.500000, 1.000000);
  63. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][0], 0x00000000);
  64. PlayerTextDrawTextSize(playerid, Circles[playerid][0], 94.0, 94.0);
  65. PlayerTextDrawColor(playerid, Circles[playerid][0], 0x000000FF);
  66. PlayerTextDrawShow(playerid, Circles[playerid][0]);
  67. Circles[playerid][1] = CreatePlayerTextDraw(playerid, 543.000000, 280.000000, "hud:radardisc");
  68. PlayerTextDrawFont(playerid, Circles[playerid][1], 4);
  69. PlayerTextDrawLetterSize(playerid, Circles[playerid][1], 0.500000, 1.000000);
  70. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][1], 0x00000000);
  71. PlayerTextDrawTextSize(playerid, Circles[playerid][1], -94.0, 94.0);
  72. PlayerTextDrawColor(playerid, Circles[playerid][1], 0x000000FF);
  73. PlayerTextDrawShow(playerid, Circles[playerid][1]);
  74. Circles[playerid][2] = CreatePlayerTextDraw(playerid, 543.000000, 468.000000, "hud:radardisc");
  75. PlayerTextDrawFont(playerid, Circles[playerid][2], 4);
  76. PlayerTextDrawLetterSize(playerid, Circles[playerid][2], 0.500000, 1.000000);
  77. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][2], 0x00000000);
  78. PlayerTextDrawTextSize(playerid, Circles[playerid][2], -94.0, -94.0);
  79. PlayerTextDrawColor(playerid, Circles[playerid][2], 0x000000FF);
  80. PlayerTextDrawShow(playerid, Circles[playerid][2]);
  81. Circles[playerid][3] = CreatePlayerTextDraw(playerid, 358.000000, 468.000000, "hud:radardisc");
  82. PlayerTextDrawFont(playerid, Circles[playerid][3], 4);
  83. PlayerTextDrawLetterSize(playerid, Circles[playerid][3], 0.500000, 1.000000);
  84. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][3], 0x00000000);
  85. PlayerTextDrawTextSize(playerid, Circles[playerid][3], 94.0, -94.0);
  86. PlayerTextDrawColor(playerid, Circles[playerid][3], 0x000000FF);
  87. PlayerTextDrawShow(playerid, Circles[playerid][3]);
  88. if(!IsNonFuelVehicle(vehid))
  89. {
  90. Circles[playerid][4] = CreatePlayerTextDraw(playerid, 534.000000, 345.000000, "hud:radardisc");
  91. PlayerTextDrawFont(playerid, Circles[playerid][4], 4);
  92. PlayerTextDrawLetterSize(playerid, Circles[playerid][4], 0.500000, 1.000000);
  93. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][4], 0x00000000);
  94. PlayerTextDrawTextSize(playerid, Circles[playerid][4], 50.0, 50.0);
  95. PlayerTextDrawColor(playerid, Circles[playerid][4], 0x000000FF);
  96. PlayerTextDrawShow(playerid, Circles[playerid][4]);
  97. Circles[playerid][5] = CreatePlayerTextDraw(playerid, 634.000000, 345.000000, "hud:radardisc");
  98. PlayerTextDrawFont(playerid, Circles[playerid][5], 4);
  99. PlayerTextDrawLetterSize(playerid, Circles[playerid][5], 0.500000, 1.000000);
  100. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][6], 0x00000000);
  101. PlayerTextDrawTextSize(playerid, Circles[playerid][5], -50.0, 50.0);
  102. PlayerTextDrawColor(playerid, Circles[playerid][5], 0x000000FF);
  103. PlayerTextDrawShow(playerid, Circles[playerid][5]);
  104. Circles[playerid][6] = CreatePlayerTextDraw(playerid, 634.000000, 445.000000, "hud:radardisc");
  105. PlayerTextDrawFont(playerid, Circles[playerid][6], 4);
  106. PlayerTextDrawLetterSize(playerid, Circles[playerid][6], 0.500000, 1.000000);
  107. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][6], 0x00000000);
  108. PlayerTextDrawTextSize(playerid, Circles[playerid][6], -50.0, -50.0);
  109. PlayerTextDrawColor(playerid, Circles[playerid][6], 0x000000FF);
  110. PlayerTextDrawShow(playerid, Circles[playerid][6]);
  111. Circles[playerid][7] = CreatePlayerTextDraw(playerid, 534.000000, 445.000000, "hud:radardisc");
  112. PlayerTextDrawFont(playerid, Circles[playerid][7], 4);
  113. PlayerTextDrawLetterSize(playerid, Circles[playerid][7], 0.500000, 1.000000);
  114. PlayerTextDrawBackgroundColor(playerid, Circles[playerid][7], 0x00000000);
  115. PlayerTextDrawTextSize(playerid, Circles[playerid][7], 50.0, -50.0);
  116. PlayerTextDrawColor(playerid, Circles[playerid][7], 0x000000FF);
  117. PlayerTextDrawShow(playerid, Circles[playerid][7]);
  118. }
  119. LinesBig[playerid][0] = CreatePlayerTextDraw(playerid, 386.700000, 382.200000+35.0, "_");
  120. PlayerTextDrawFont(playerid, LinesBig[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
  121. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][0], 0x00000000);
  122. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][0], 19449);
  123. PlayerTextDrawTextSize(playerid, LinesBig[playerid][0], 14.0, 14.0);
  124. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][0], 0.0, 41.0, 90.0, 1);
  125. PlayerTextDrawColor(playerid, LinesBig[playerid][0], 0x80ff02FF);
  126. PlayerTextDrawAlignment(playerid, LinesBig[playerid][0], 1);
  127. PlayerTextDrawShow(playerid, LinesBig[playerid][0]);
  128. LinesBig[playerid][1] = CreatePlayerTextDraw(playerid, 374.400000, 358.800000+35.0, "_");
  129. PlayerTextDrawFont(playerid, LinesBig[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
  130. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][1], 0x00000000);
  131. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][1], 19449);
  132. PlayerTextDrawTextSize(playerid, LinesBig[playerid][1], 14.0, 14.0);
  133. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][1], 0.0, 20.0, 90.0, 1);
  134. PlayerTextDrawColor(playerid, LinesBig[playerid][1], 0x80ff02FF);
  135. PlayerTextDrawAlignment(playerid, LinesBig[playerid][1], 1);
  136. PlayerTextDrawShow(playerid, LinesBig[playerid][1]);
  137. LinesBig[playerid][2] = CreatePlayerTextDraw(playerid, 370.500000, 332.750000+35.0, "_");
  138. PlayerTextDrawFont(playerid, LinesBig[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
  139. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][2], 0x00000000);
  140. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][2], 19449);
  141. PlayerTextDrawTextSize(playerid, LinesBig[playerid][2], 14.0, 14.0);
  142. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][2], 0.0, 0.0, 90.0, 1);
  143. PlayerTextDrawColor(playerid, LinesBig[playerid][2], 0x80ff02FF);
  144. PlayerTextDrawAlignment(playerid, LinesBig[playerid][2], 1);
  145. PlayerTextDrawShow(playerid, LinesBig[playerid][2]);
  146. LinesBig[playerid][3] = CreatePlayerTextDraw(playerid, 375.000000, 306.800000+35.0, "_");
  147. PlayerTextDrawFont(playerid, LinesBig[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
  148. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][3], 0x00000000);
  149. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][3], 19449);
  150. PlayerTextDrawTextSize(playerid, LinesBig[playerid][3], 14.0, 14.0);
  151. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][3], 0.0, -21.0, 90.0, 1);
  152. PlayerTextDrawColor(playerid, LinesBig[playerid][3], 0x80ff02FF);
  153. PlayerTextDrawAlignment(playerid, LinesBig[playerid][3], 1);
  154. PlayerTextDrawShow(playerid, LinesBig[playerid][3]);
  155. LinesBig[playerid][4] = CreatePlayerTextDraw(playerid, 388.200000, 283.200000+35.0, "_");
  156. PlayerTextDrawFont(playerid, LinesBig[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
  157. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][4], 0x00000000);
  158. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][4], 19449);
  159. PlayerTextDrawTextSize(playerid, LinesBig[playerid][4], 14.0, 14.0);
  160. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][4], 0.0, -42.0, 90.0, 1);
  161. PlayerTextDrawColor(playerid, LinesBig[playerid][4], 0x80ff02FF);
  162. PlayerTextDrawAlignment(playerid, LinesBig[playerid][4], 1);
  163. PlayerTextDrawShow(playerid, LinesBig[playerid][4]);
  164. LinesBig[playerid][5] = CreatePlayerTextDraw(playerid, 408.900000, 265.400000+35.0, "_");
  165. PlayerTextDrawFont(playerid, LinesBig[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
  166. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][5], 0x00000000);
  167. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][5], 19449);
  168. PlayerTextDrawTextSize(playerid, LinesBig[playerid][5], 14.0, 14.0);
  169. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][5], 0.0, -63.0, 90.0, 1);
  170. PlayerTextDrawColor(playerid, LinesBig[playerid][5], 0x80ff02FF);
  171. PlayerTextDrawAlignment(playerid, LinesBig[playerid][5], 1);
  172. PlayerTextDrawShow(playerid, LinesBig[playerid][5]);
  173. LinesBig[playerid][6] = CreatePlayerTextDraw(playerid, 434.900000, 256.700000+35.0, "_");
  174. PlayerTextDrawFont(playerid, LinesBig[playerid][6], TEXT_DRAW_FONT_MODEL_PREVIEW);
  175. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][6], 0x00000000);
  176. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][6], 19449);
  177. PlayerTextDrawTextSize(playerid, LinesBig[playerid][6], 14.0, 14.0);
  178. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][6], 0.0, -84.0, 90.0, 1);
  179. PlayerTextDrawColor(playerid, LinesBig[playerid][6], 0x80ff02FF);
  180. PlayerTextDrawAlignment(playerid, LinesBig[playerid][6], 1);
  181. PlayerTextDrawShow(playerid, LinesBig[playerid][6]);
  182. LinesBig[playerid][7] = CreatePlayerTextDraw(playerid, 463.000000, 258.500000+35.0, "_");
  183. PlayerTextDrawFont(playerid, LinesBig[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
  184. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][7], 0x00000000);
  185. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][7], 19449);
  186. PlayerTextDrawTextSize(playerid, LinesBig[playerid][7], 14.0, 14.0);
  187. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][7], 0.0, -105.0, 90.0, 1);
  188. PlayerTextDrawColor(playerid, LinesBig[playerid][7], 0x80ff02FF);
  189. PlayerTextDrawAlignment(playerid, LinesBig[playerid][7], 1);
  190. PlayerTextDrawShow(playerid, LinesBig[playerid][7]);
  191. LinesBig[playerid][8] = CreatePlayerTextDraw(playerid, 487.300000, 271.800000+35.0, "_");
  192. PlayerTextDrawFont(playerid, LinesBig[playerid][8], TEXT_DRAW_FONT_MODEL_PREVIEW);
  193. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][8], 0x00000000);
  194. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][8], 19449);
  195. PlayerTextDrawTextSize(playerid, LinesBig[playerid][8], 14.0, 14.0);
  196. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][8], 0.0, -126.0, 90.0, 1);
  197. PlayerTextDrawColor(playerid, LinesBig[playerid][8], 0x80ff02FF);
  198. PlayerTextDrawAlignment(playerid, LinesBig[playerid][8], 1);
  199. PlayerTextDrawShow(playerid, LinesBig[playerid][8]);
  200. LinesBig[playerid][9] = CreatePlayerTextDraw(playerid, 505.000000, 292.000000+35.0, "_");
  201. PlayerTextDrawFont(playerid, LinesBig[playerid][9], TEXT_DRAW_FONT_MODEL_PREVIEW);
  202. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][9], 0x00000000);
  203. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][9], 19449);
  204. PlayerTextDrawTextSize(playerid, LinesBig[playerid][9], 14.0, 14.0);
  205. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][9], 0.0, -147.0, 90.0, 1);
  206. PlayerTextDrawColor(playerid, LinesBig[playerid][9], 0x80ff02FF);
  207. PlayerTextDrawAlignment(playerid, LinesBig[playerid][9], 1);
  208. PlayerTextDrawShow(playerid, LinesBig[playerid][9]);
  209. LinesBig[playerid][10] = CreatePlayerTextDraw(playerid, 514.700000, 316.600000+35.0, "_");
  210. PlayerTextDrawFont(playerid, LinesBig[playerid][10], TEXT_DRAW_FONT_MODEL_PREVIEW);
  211. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][10], 0x00000000);
  212. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][10], 19449);
  213. PlayerTextDrawTextSize(playerid, LinesBig[playerid][10], 14.0, 14.0);
  214. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][10], 0.0, -168.0, 90.0, 1);
  215. PlayerTextDrawColor(playerid, LinesBig[playerid][10], 0x80ff02FF);
  216. PlayerTextDrawAlignment(playerid, LinesBig[playerid][10], 1);
  217. PlayerTextDrawShow(playerid, LinesBig[playerid][10]);
  218. LinesBig[playerid][11] = CreatePlayerTextDraw(playerid, 515.200000, 343.200000+35.0, "_");
  219. PlayerTextDrawFont(playerid, LinesBig[playerid][11], TEXT_DRAW_FONT_MODEL_PREVIEW);
  220. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][11], 0x00000000);
  221. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][11], 19449);
  222. PlayerTextDrawTextSize(playerid, LinesBig[playerid][11], 14.0, 14.0);
  223. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][11], 0.0, -189.0, 90.0, 1);
  224. PlayerTextDrawColor(playerid, LinesBig[playerid][11], 0x80ff02FF);
  225. PlayerTextDrawAlignment(playerid, LinesBig[playerid][11], 1);
  226. PlayerTextDrawShow(playerid, LinesBig[playerid][11]);
  227. LinesBig[playerid][12] = CreatePlayerTextDraw(playerid, 508.500000, 368.700000+35.0, "_");
  228. PlayerTextDrawFont(playerid, LinesBig[playerid][12], TEXT_DRAW_FONT_MODEL_PREVIEW);
  229. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][12], 0x00000000);
  230. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][12], 19449);
  231. PlayerTextDrawTextSize(playerid, LinesBig[playerid][12], 14.0, 14.0);
  232. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][12], 0.0, -210.0, 90.0, 1);
  233. PlayerTextDrawColor(playerid, LinesBig[playerid][12], 0x80ff02FF);
  234. PlayerTextDrawAlignment(playerid, LinesBig[playerid][12], 1);
  235. PlayerTextDrawShow(playerid, LinesBig[playerid][12]);
  236. LinesBig[playerid][13] = CreatePlayerTextDraw(playerid, 492.500000, 390.200000+35.0, "_");
  237. PlayerTextDrawFont(playerid, LinesBig[playerid][13], TEXT_DRAW_FONT_MODEL_PREVIEW);
  238. PlayerTextDrawBackgroundColor(playerid, LinesBig[playerid][13], 0x00000000);
  239. PlayerTextDrawSetPreviewModel(playerid, LinesBig[playerid][13], 19449);
  240. PlayerTextDrawTextSize(playerid, LinesBig[playerid][13], 14.0, 14.0);
  241. PlayerTextDrawSetPreviewRot(playerid, LinesBig[playerid][13], 0.0, -231.0, 90.0, 1);
  242. PlayerTextDrawColor(playerid, LinesBig[playerid][13], 0x80ff02FF);
  243. PlayerTextDrawAlignment(playerid, LinesBig[playerid][13], 1);
  244. PlayerTextDrawShow(playerid, LinesBig[playerid][13]);
  245. MPH[playerid][0] = CreatePlayerTextDraw(playerid, 396.500000, 371.700000+35.0, "10");
  246. PlayerTextDrawFont(playerid, MPH[playerid][0], 2);
  247. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][0], 0x00000000);
  248. PlayerTextDrawTextSize(playerid, MPH[playerid][0], 14.0, 14.0);
  249. PlayerTextDrawColor(playerid, MPH[playerid][0], 0x80ff02FF);
  250. PlayerTextDrawLetterSize(playerid, MPH[playerid][0], 0.33, 1.60);
  251. PlayerTextDrawShow(playerid, MPH[playerid][0]);
  252. MPH[playerid][1] = CreatePlayerTextDraw(playerid, 388.700000, 353.200000+35.0, "20");
  253. PlayerTextDrawFont(playerid, MPH[playerid][1], 2);
  254. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][1], 0x00000000);
  255. PlayerTextDrawTextSize(playerid, MPH[playerid][1], 14.0, 14.0);
  256. PlayerTextDrawColor(playerid, MPH[playerid][1], 0x80ff02FF);
  257. PlayerTextDrawLetterSize(playerid, MPH[playerid][1], 0.33, 1.60);
  258. PlayerTextDrawShow(playerid, MPH[playerid][1]);
  259. MPH[playerid][2] = CreatePlayerTextDraw(playerid, 385.000000, 331.800000+35.0, "30");
  260. PlayerTextDrawFont(playerid, MPH[playerid][2], 2);
  261. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][2], 0x00000000);
  262. PlayerTextDrawTextSize(playerid, MPH[playerid][2], 14.0, 14.0);
  263. PlayerTextDrawColor(playerid, MPH[playerid][2], 0x80ff02FF);
  264. PlayerTextDrawLetterSize(playerid, MPH[playerid][2], 0.33, 1.60);
  265. PlayerTextDrawShow(playerid, MPH[playerid][2]);
  266. MPH[playerid][3] = CreatePlayerTextDraw(playerid, 388.000000, 309.800000+35.0, "40");
  267. PlayerTextDrawFont(playerid, MPH[playerid][3], 2);
  268. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][3], 0x00000000);
  269. PlayerTextDrawTextSize(playerid, MPH[playerid][3], 14.0, 14.0);
  270. PlayerTextDrawColor(playerid, MPH[playerid][3], 0x80ff02FF);
  271. PlayerTextDrawLetterSize(playerid, MPH[playerid][3], 0.33, 1.60);
  272. PlayerTextDrawShow(playerid, MPH[playerid][3]);
  273. MPH[playerid][4] = CreatePlayerTextDraw(playerid, 399.400000, 291.000000+35.0, "50");
  274. PlayerTextDrawFont(playerid, MPH[playerid][4], 2);
  275. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][4], 0x00000000);
  276. PlayerTextDrawTextSize(playerid, MPH[playerid][4], 14.0, 14.0);
  277. PlayerTextDrawColor(playerid, MPH[playerid][4], 0x80ff02FF);
  278. PlayerTextDrawLetterSize(playerid, MPH[playerid][4], 0.33, 1.60);
  279. PlayerTextDrawShow(playerid, MPH[playerid][4]);
  280. MPH[playerid][5] = CreatePlayerTextDraw(playerid, 413.400000, 276.900000+35.0, "60");
  281. PlayerTextDrawFont(playerid, MPH[playerid][5], 2);
  282. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][5], 0x00000000);
  283. PlayerTextDrawTextSize(playerid, MPH[playerid][5], 14.0, 14.0);
  284. PlayerTextDrawColor(playerid, MPH[playerid][5], 0x80ff02FF);
  285. PlayerTextDrawLetterSize(playerid, MPH[playerid][5], 0.33, 1.60);
  286. PlayerTextDrawShow(playerid, MPH[playerid][5]);
  287. MPH[playerid][6] = CreatePlayerTextDraw(playerid, 435.400000, 268.000000+35.0, "70");
  288. PlayerTextDrawFont(playerid, MPH[playerid][6], 2);
  289. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][6], 0x00000000);
  290. PlayerTextDrawTextSize(playerid, MPH[playerid][6], 14.0, 14.0);
  291. PlayerTextDrawColor(playerid, MPH[playerid][6], 0x80ff02FF);
  292. PlayerTextDrawLetterSize(playerid, MPH[playerid][6], 0.33, 1.60);
  293. PlayerTextDrawShow(playerid, MPH[playerid][6]);
  294. MPH[playerid][7] = CreatePlayerTextDraw(playerid, 459.400000, 270.000000+35.0, "80");
  295. PlayerTextDrawFont(playerid, MPH[playerid][7], 2);
  296. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][7], 0x00000000);
  297. PlayerTextDrawTextSize(playerid, MPH[playerid][7], 14.0, 14.0);
  298. PlayerTextDrawColor(playerid, MPH[playerid][7], 0x80ff02FF);
  299. PlayerTextDrawLetterSize(playerid, MPH[playerid][7], 0.33, 1.60);
  300. PlayerTextDrawShow(playerid, MPH[playerid][7]);
  301. MPH[playerid][8] = CreatePlayerTextDraw(playerid, 478.000000, 283.000000+35.0, "90");
  302. PlayerTextDrawFont(playerid, MPH[playerid][8], 2);
  303. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][8], 0x00000000);
  304. PlayerTextDrawTextSize(playerid, MPH[playerid][8], 14.0, 14.0);
  305. PlayerTextDrawColor(playerid, MPH[playerid][8], 0x80ff02FF);
  306. PlayerTextDrawLetterSize(playerid, MPH[playerid][8], 0.33, 1.60);
  307. PlayerTextDrawShow(playerid, MPH[playerid][8]);
  308. MPH[playerid][9] = CreatePlayerTextDraw(playerid, 489.000000, 299.000000+35.0, "100");
  309. PlayerTextDrawFont(playerid, MPH[playerid][9], 2);
  310. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][9], 0x00000000);
  311. PlayerTextDrawTextSize(playerid, MPH[playerid][9], 14.0, 14.0);
  312. PlayerTextDrawColor(playerid, MPH[playerid][9], 0x80ff02FF);
  313. PlayerTextDrawLetterSize(playerid, MPH[playerid][9], 0.27, 1.60);
  314. PlayerTextDrawShow(playerid, MPH[playerid][9]);
  315. MPH[playerid][10] = CreatePlayerTextDraw(playerid, 498.300000, 317.700000+35.0, "110");
  316. PlayerTextDrawFont(playerid, MPH[playerid][10], 2);
  317. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][10], 0x00000000);
  318. PlayerTextDrawTextSize(playerid, MPH[playerid][10], 14.0, 14.0);
  319. PlayerTextDrawColor(playerid, MPH[playerid][10], 0x80ff02FF);
  320. PlayerTextDrawLetterSize(playerid, MPH[playerid][10], 0.29, 1.60);
  321. PlayerTextDrawShow(playerid, MPH[playerid][10]);
  322. MPH[playerid][11] = CreatePlayerTextDraw(playerid, 497.500000, 340.000000+35.0, "120");
  323. PlayerTextDrawFont(playerid, MPH[playerid][11], 2);
  324. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][11], 0x00000000);
  325. PlayerTextDrawTextSize(playerid, MPH[playerid][11], 14.0, 14.0);
  326. PlayerTextDrawColor(playerid, MPH[playerid][11], 0x80ff02FF);
  327. PlayerTextDrawLetterSize(playerid, MPH[playerid][11], 0.27, 1.60);
  328. PlayerTextDrawShow(playerid, MPH[playerid][11]);
  329. MPH[playerid][12] = CreatePlayerTextDraw(playerid, 491.800000, 360.000000+35.0, "130");
  330. PlayerTextDrawFont(playerid, MPH[playerid][12], 2);
  331. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][12], 0x00000000);
  332. PlayerTextDrawTextSize(playerid, MPH[playerid][12], 14.0, 14.0);
  333. PlayerTextDrawColor(playerid, MPH[playerid][12], 0x80ff02FF);
  334. PlayerTextDrawLetterSize(playerid, MPH[playerid][12], 0.27, 1.60);
  335. PlayerTextDrawShow(playerid, MPH[playerid][12]);
  336. MPH[playerid][13] = CreatePlayerTextDraw(playerid, 486.800000, 378.000000+35.0, "140");
  337. PlayerTextDrawFont(playerid, MPH[playerid][13], 2);
  338. PlayerTextDrawBackgroundColor(playerid, MPH[playerid][13], 0x00000000);
  339. PlayerTextDrawTextSize(playerid, MPH[playerid][13], 14.0, 14.0);
  340. PlayerTextDrawColor(playerid, MPH[playerid][13], 0x80ff02FF);
  341. PlayerTextDrawLetterSize(playerid, MPH[playerid][13], 0.27, 1.60);
  342. PlayerTextDrawShow(playerid, MPH[playerid][13]);
  343. MPHT[playerid] = CreatePlayerTextDraw(playerid, 438.00000, 310.500000+35.0, "MPH");
  344. PlayerTextDrawFont(playerid, MPHT[playerid], 2);
  345. PlayerTextDrawBackgroundColor(playerid, MPHT[playerid], 0x00000000);
  346. PlayerTextDrawTextSize(playerid, MPHT[playerid], 14.0, 14.0);
  347. PlayerTextDrawColor(playerid, MPHT[playerid], 0x80ff02FF);
  348. PlayerTextDrawLetterSize(playerid, MPHT[playerid], 0.29, 1.60);
  349. PlayerTextDrawShow(playerid, MPHT[playerid]);
  350. kmhT[playerid] = CreatePlayerTextDraw(playerid, 439.20000, 355.500000+35.0, "km/h");
  351. PlayerTextDrawFont(playerid, kmhT[playerid], 1);
  352. PlayerTextDrawBackgroundColor(playerid, kmhT[playerid], 0x00000000);
  353. PlayerTextDrawTextSize(playerid, kmhT[playerid], 14.0, 14.0);
  354. PlayerTextDrawColor(playerid, kmhT[playerid], 0xFFFFFFFF);
  355. PlayerTextDrawLetterSize(playerid, kmhT[playerid], 0.27, 1.42);
  356. PlayerTextDrawShow(playerid, kmhT[playerid]);
  357. LinesSmall[playerid][0] = CreatePlayerTextDraw(playerid, 378.400000, 372.000000+35.0, "_");
  358. PlayerTextDrawFont(playerid, LinesSmall[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
  359. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][0], 0x00000000);
  360. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][0], 19449);
  361. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][0], 14.0, 14.0);
  362. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][0], 0.0, 30.5, 90.0, 1.5);
  363. PlayerTextDrawColor(playerid, LinesSmall[playerid][0], 0x80ff02FF);
  364. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][0], 1);
  365. PlayerTextDrawShow(playerid, LinesSmall[playerid][0]);
  366. LinesSmall[playerid][1] = CreatePlayerTextDraw(playerid, 369.600000, 346.500000+35.0, "_");
  367. PlayerTextDrawFont(playerid, LinesSmall[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
  368. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][1], 0x00000000);
  369. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][1], 19449);
  370. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][1], 14.0, 14.0);
  371. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][1], 0.0, 10.0, 90.0, 1.5);
  372. PlayerTextDrawColor(playerid, LinesSmall[playerid][1], 0x80ff02FF);
  373. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][1], 1);
  374. PlayerTextDrawShow(playerid, LinesSmall[playerid][1]);
  375. LinesSmall[playerid][2] = CreatePlayerTextDraw(playerid, 369.700000, 319.500000+35.0, "_");
  376. PlayerTextDrawFont(playerid, LinesSmall[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
  377. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][2], 0x00000000);
  378. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][2], 19449);
  379. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][2], 14.0, 14.0);
  380. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][2], 0.0, -11.0, 90.0, 1.5);
  381. PlayerTextDrawColor(playerid, LinesSmall[playerid][2], 0x80ff02FF);
  382. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][2], 1);
  383. PlayerTextDrawShow(playerid, LinesSmall[playerid][2]);
  384. LinesSmall[playerid][3] = CreatePlayerTextDraw(playerid, 378.800000, 294.100000+35.0, "_");
  385. PlayerTextDrawFont(playerid, LinesSmall[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
  386. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][3], 0x00000000);
  387. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][3], 19449);
  388. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][3], 14.0, 14.0);
  389. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][3], 0.0, -32.0, 90.0, 1.5);
  390. PlayerTextDrawColor(playerid, LinesSmall[playerid][3], 0x80ff02FF);
  391. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][3], 1);
  392. PlayerTextDrawShow(playerid, LinesSmall[playerid][3]);
  393. LinesSmall[playerid][4] = CreatePlayerTextDraw(playerid, 396.700000, 272.000000+35.0, "_");
  394. PlayerTextDrawFont(playerid, LinesSmall[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
  395. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][4], 0x00000000);
  396. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][4], 19449);
  397. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][4], 14.0, 14.0);
  398. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][4], 0.0, -53.0, 90.0, 1.5);
  399. PlayerTextDrawColor(playerid, LinesSmall[playerid][4], 0x80ff02FF);
  400. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][4], 1);
  401. PlayerTextDrawShow(playerid, LinesSmall[playerid][4]);
  402. LinesSmall[playerid][5] = CreatePlayerTextDraw(playerid, 420.700000, 257.700000+35.0, "_");
  403. PlayerTextDrawFont(playerid, LinesSmall[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
  404. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][5], 0x00000000);
  405. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][5], 19449);
  406. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][5], 14.0, 14.0);
  407. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][5], 0.0, -74.0, 90.0, 1.5);
  408. PlayerTextDrawColor(playerid, LinesSmall[playerid][5], 0x80ff02FF);
  409. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][5], 1);
  410. PlayerTextDrawShow(playerid, LinesSmall[playerid][5]);
  411. LinesSmall[playerid][6] = CreatePlayerTextDraw(playerid, 449.000000, 254.300000+35.0, "_");
  412. PlayerTextDrawFont(playerid, LinesSmall[playerid][6], TEXT_DRAW_FONT_MODEL_PREVIEW);
  413. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][6], 0x00000000);
  414. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][6], 19449);
  415. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][6], 14.0, 14.0);
  416. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][6], 0.0, -95.0, 90.0, 1.5);
  417. PlayerTextDrawColor(playerid, LinesSmall[playerid][6], 0x80ff02FF);
  418. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][6], 1);
  419. PlayerTextDrawShow(playerid, LinesSmall[playerid][6]);
  420. LinesSmall[playerid][7] = CreatePlayerTextDraw(playerid, 476.500000, 262.200000+35.0, "_");
  421. PlayerTextDrawFont(playerid, LinesSmall[playerid][7], TEXT_DRAW_FONT_MODEL_PREVIEW);
  422. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][7], 0x00000000);
  423. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][7], 19449);
  424. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][7], 14.0, 14.0);
  425. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][7], 0.0, -116.0, 90.0, 1.5);
  426. PlayerTextDrawColor(playerid, LinesSmall[playerid][7], 0x80ff02FF);
  427. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][7], 1);
  428. PlayerTextDrawShow(playerid, LinesSmall[playerid][7]);
  429. LinesSmall[playerid][8] = CreatePlayerTextDraw(playerid, 498.500000, 279.700000+35.0, "_");
  430. PlayerTextDrawFont(playerid, LinesSmall[playerid][8], TEXT_DRAW_FONT_MODEL_PREVIEW);
  431. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][8], 0x00000000);
  432. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][8], 19449);
  433. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][8], 14.0, 14.0);
  434. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][8], 0.0, -137.0, 90.0, 1.5);
  435. PlayerTextDrawColor(playerid, LinesSmall[playerid][8], 0x80ff02FF);
  436. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][8], 1);
  437. PlayerTextDrawShow(playerid, LinesSmall[playerid][8]);
  438. LinesSmall[playerid][9] = CreatePlayerTextDraw(playerid, 513.000000, 303.200000+35.0, "_");
  439. PlayerTextDrawFont(playerid, LinesSmall[playerid][9], TEXT_DRAW_FONT_MODEL_PREVIEW);
  440. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][9], 0x00000000);
  441. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][9], 19449);
  442. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][9], 14.0, 14.0);
  443. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][9], 0.0, -158.0, 90.0, 1.5);
  444. PlayerTextDrawColor(playerid, LinesSmall[playerid][9], 0x80ff02FF);
  445. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][9], 1);
  446. PlayerTextDrawShow(playerid, LinesSmall[playerid][9]);
  447. LinesSmall[playerid][10] = CreatePlayerTextDraw(playerid, 518.000000, 329.700000+35.0, "_");
  448. PlayerTextDrawFont(playerid, LinesSmall[playerid][10], TEXT_DRAW_FONT_MODEL_PREVIEW);
  449. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][10], 0x00000000);
  450. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][10], 19449);
  451. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][10], 14.0, 14.0);
  452. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][10], 0.0, -179.0, 90.0, 1.5);
  453. PlayerTextDrawColor(playerid, LinesSmall[playerid][10], 0x80ff02FF);
  454. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][10], 1);
  455. PlayerTextDrawShow(playerid, LinesSmall[playerid][10]);
  456. LinesSmall[playerid][11] = CreatePlayerTextDraw(playerid, 514.800000, 356.500000+35.0, "_");
  457. PlayerTextDrawFont(playerid, LinesSmall[playerid][11], TEXT_DRAW_FONT_MODEL_PREVIEW);
  458. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][11], 0x00000000);
  459. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][11], 19449);
  460. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][11], 14.0, 14.0);
  461. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][11], 0.0, -200.0, 90.0, 1.5);
  462. PlayerTextDrawColor(playerid, LinesSmall[playerid][11], 0x80ff02FF);
  463. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][11], 1);
  464. PlayerTextDrawShow(playerid, LinesSmall[playerid][11]);
  465. LinesSmall[playerid][12] = CreatePlayerTextDraw(playerid, 503.000000, 381.000000+35.0, "_");
  466. PlayerTextDrawFont(playerid, LinesSmall[playerid][12], TEXT_DRAW_FONT_MODEL_PREVIEW);
  467. PlayerTextDrawBackgroundColor(playerid, LinesSmall[playerid][12], 0x00000000);
  468. PlayerTextDrawSetPreviewModel(playerid, LinesSmall[playerid][12], 19449);
  469. PlayerTextDrawTextSize(playerid, LinesSmall[playerid][12], 14.0, 14.0);
  470. PlayerTextDrawSetPreviewRot(playerid, LinesSmall[playerid][12], 0.0, -221.0, 90.0, 1.5);
  471. PlayerTextDrawColor(playerid, LinesSmall[playerid][12], 0x80ff02FF);
  472. PlayerTextDrawAlignment(playerid, LinesSmall[playerid][12], 1);
  473. PlayerTextDrawShow(playerid, LinesSmall[playerid][12]);
  474. Dots[playerid][0] = CreatePlayerTextDraw(playerid, 412.40000, 356.300000+35.0, ".");
  475. PlayerTextDrawFont(playerid, Dots[playerid][0], 1);
  476. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][0], 0x00000000);
  477. PlayerTextDrawColor(playerid, Dots[playerid][0], 0xFFFFFFFF);
  478. PlayerTextDrawLetterSize(playerid, Dots[playerid][0], 0.33, 1.60);
  479. PlayerTextDrawShow(playerid, Dots[playerid][0]);
  480. Dots[playerid][1] = CreatePlayerTextDraw(playerid, 407.300000, 347.500000+35.0, ".");
  481. PlayerTextDrawFont(playerid, Dots[playerid][1], 1);
  482. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][1], 0x00000000);
  483. PlayerTextDrawColor(playerid, Dots[playerid][1], 0xFFFFFFFF);
  484. PlayerTextDrawLetterSize(playerid, Dots[playerid][1], 0.33, 1.60);
  485. PlayerTextDrawShow(playerid, Dots[playerid][1]);
  486. Dots[playerid][2] = CreatePlayerTextDraw(playerid, 404.600000, 337.400000+35.0, ".");
  487. PlayerTextDrawFont(playerid, Dots[playerid][2], 1);
  488. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][2], 0x00000000);
  489. PlayerTextDrawColor(playerid, Dots[playerid][2], 0xFFFFFFFF);
  490. PlayerTextDrawLetterSize(playerid, Dots[playerid][2], 0.33, 1.60);
  491. PlayerTextDrawShow(playerid, Dots[playerid][2]);
  492. Dots[playerid][3] = CreatePlayerTextDraw(playerid, 404.000000, 327.400000+35.0, ".");
  493. PlayerTextDrawFont(playerid, Dots[playerid][3], 1);
  494. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][3], 0x00000000);
  495. PlayerTextDrawColor(playerid, Dots[playerid][3], 0xFFFFFFFF);
  496. PlayerTextDrawLetterSize(playerid, Dots[playerid][3], 0.33, 1.60);
  497. PlayerTextDrawShow(playerid, Dots[playerid][3]);
  498. Dots[playerid][4] = CreatePlayerTextDraw(playerid, 405.500000, 317.450000+35.0, ".");
  499. PlayerTextDrawFont(playerid, Dots[playerid][4], 1);
  500. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][4], 0x00000000);
  501. PlayerTextDrawColor(playerid, Dots[playerid][4], 0xFFFFFFFF);
  502. PlayerTextDrawLetterSize(playerid, Dots[playerid][4], 0.33, 1.60);
  503. PlayerTextDrawShow(playerid, Dots[playerid][4]);
  504. Dots[playerid][5] = CreatePlayerTextDraw(playerid, 409.400000, 308.200000+35.0, ".");
  505. PlayerTextDrawFont(playerid, Dots[playerid][5], 1);
  506. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][5], 0x00000000);
  507. PlayerTextDrawColor(playerid, Dots[playerid][5], 0xFFFFFFFF);
  508. PlayerTextDrawLetterSize(playerid, Dots[playerid][5], 0.33, 1.60);
  509. PlayerTextDrawShow(playerid, Dots[playerid][5]);
  510. Dots[playerid][6] = CreatePlayerTextDraw(playerid, 415.000000, 299.750000+35.0, ".");
  511. PlayerTextDrawFont(playerid, Dots[playerid][6], 1);
  512. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][6], 0x00000000);
  513. PlayerTextDrawColor(playerid, Dots[playerid][6], 0xFFFFFFFF);
  514. PlayerTextDrawLetterSize(playerid, Dots[playerid][6], 0.33, 1.60);
  515. PlayerTextDrawShow(playerid, Dots[playerid][6]);
  516. Dots[playerid][7] = CreatePlayerTextDraw(playerid, 421.000000, 291.000000+35.0, ".");
  517. PlayerTextDrawFont(playerid, Dots[playerid][7], 1);
  518. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][7], 0x00000000);
  519. PlayerTextDrawColor(playerid, Dots[playerid][7], 0xFFFFFFFF);
  520. PlayerTextDrawLetterSize(playerid, Dots[playerid][7], 0.33, 1.60);
  521. PlayerTextDrawShow(playerid, Dots[playerid][7]);
  522. Dots[playerid][8] = CreatePlayerTextDraw(playerid, 429.600000, 283.800000+35.0, ".");
  523. PlayerTextDrawFont(playerid, Dots[playerid][8], 1);
  524. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][8], 0x00000000);
  525. PlayerTextDrawColor(playerid, Dots[playerid][8], 0xFFFFFFFF);
  526. PlayerTextDrawLetterSize(playerid, Dots[playerid][8], 0.33, 1.60);
  527. PlayerTextDrawShow(playerid, Dots[playerid][8]);
  528. Dots[playerid][9] = CreatePlayerTextDraw(playerid, 440.200000, 280.200000+35.0, ".");
  529. PlayerTextDrawFont(playerid, Dots[playerid][9], 1);
  530. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][9], 0x00000000);
  531. PlayerTextDrawColor(playerid, Dots[playerid][9], 0xFFFFFFFF);
  532. PlayerTextDrawLetterSize(playerid, Dots[playerid][9], 0.33, 1.60);
  533. PlayerTextDrawShow(playerid, Dots[playerid][9]);
  534. Dots[playerid][10] = CreatePlayerTextDraw(playerid, 451.400000, 279.900000+35.0, ".");
  535. PlayerTextDrawFont(playerid, Dots[playerid][10], 1);
  536. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][10], 0x00000000);
  537. PlayerTextDrawColor(playerid, Dots[playerid][10], 0xFFFFFFFF);
  538. PlayerTextDrawLetterSize(playerid, Dots[playerid][10], 0.33, 1.60);
  539. PlayerTextDrawShow(playerid, Dots[playerid][10]);
  540. Dots[playerid][11] = CreatePlayerTextDraw(playerid, 462.600000, 281.500000+35.0, ".");
  541. PlayerTextDrawFont(playerid, Dots[playerid][11], 1);
  542. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][11], 0x00000000);
  543. PlayerTextDrawColor(playerid, Dots[playerid][11], 0xFFFFFFFF);
  544. PlayerTextDrawLetterSize(playerid, Dots[playerid][11], 0.33, 1.60);
  545. PlayerTextDrawShow(playerid, Dots[playerid][11]);
  546. Dots[playerid][12] = CreatePlayerTextDraw(playerid, 473.000000, 286.000000+35.0, ".");
  547. PlayerTextDrawFont(playerid, Dots[playerid][12], 1);
  548. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][12], 0x00000000);
  549. PlayerTextDrawColor(playerid, Dots[playerid][12], 0xFFFFFFFF);
  550. PlayerTextDrawLetterSize(playerid, Dots[playerid][12], 0.33, 1.60);
  551. PlayerTextDrawShow(playerid, Dots[playerid][12]);
  552. Dots[playerid][13] = CreatePlayerTextDraw(playerid, 480.400000, 294.000000+35.0, ".");
  553. PlayerTextDrawFont(playerid, Dots[playerid][13], 1);
  554. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][13], 0x00000000);
  555. PlayerTextDrawColor(playerid, Dots[playerid][13], 0xFFFFFFFF);
  556. PlayerTextDrawLetterSize(playerid, Dots[playerid][13], 0.33, 1.60);
  557. PlayerTextDrawShow(playerid, Dots[playerid][13]);
  558. Dots[playerid][14] = CreatePlayerTextDraw(playerid, 485.500000, 303.500000+35.0, ".");
  559. PlayerTextDrawFont(playerid, Dots[playerid][14], 1);
  560. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][14], 0x00000000);
  561. PlayerTextDrawColor(playerid, Dots[playerid][14], 0xFFFFFFFF);
  562. PlayerTextDrawLetterSize(playerid, Dots[playerid][14], 0.33, 1.60);
  563. PlayerTextDrawShow(playerid, Dots[playerid][14]);
  564. Dots[playerid][15] = CreatePlayerTextDraw(playerid, 490.800000, 312.200000+35.0, ".");
  565. PlayerTextDrawFont(playerid, Dots[playerid][15], 1);
  566. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][15], 0x00000000);
  567. PlayerTextDrawColor(playerid, Dots[playerid][15], 0xFFFFFFFF);
  568. PlayerTextDrawLetterSize(playerid, Dots[playerid][15], 0.33, 1.60);
  569. PlayerTextDrawShow(playerid, Dots[playerid][15]);
  570. Dots[playerid][16] = CreatePlayerTextDraw(playerid, 493.100000, 322.200000+35.0, ".");
  571. PlayerTextDrawFont(playerid, Dots[playerid][16], 1);
  572. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][16], 0x00000000);
  573. PlayerTextDrawColor(playerid, Dots[playerid][16], 0xFFFFFFFF);
  574. PlayerTextDrawLetterSize(playerid, Dots[playerid][16], 0.33, 1.60);
  575. PlayerTextDrawShow(playerid, Dots[playerid][16]);
  576. Dots[playerid][17] = CreatePlayerTextDraw(playerid, 494.000000, 332.300000+35.0, ".");
  577. PlayerTextDrawFont(playerid, Dots[playerid][17], 1);
  578. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][17], 0x00000000);
  579. PlayerTextDrawColor(playerid, Dots[playerid][17], 0xFFFFFFFF);
  580. PlayerTextDrawLetterSize(playerid, Dots[playerid][17], 0.33, 1.60);
  581. PlayerTextDrawShow(playerid, Dots[playerid][17]);
  582. Dots[playerid][18] = CreatePlayerTextDraw(playerid, 492.000000, 342.400000+35.0, ".");
  583. PlayerTextDrawFont(playerid, Dots[playerid][18], 1);
  584. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][18], 0x00000000);
  585. PlayerTextDrawColor(playerid, Dots[playerid][18], 0xFFFFFFFF);
  586. PlayerTextDrawLetterSize(playerid, Dots[playerid][18], 0.33, 1.60);
  587. PlayerTextDrawShow(playerid, Dots[playerid][18]);
  588. Dots[playerid][19] = CreatePlayerTextDraw(playerid, 488.300000, 351.700000+35.0, ".");
  589. PlayerTextDrawFont(playerid, Dots[playerid][19], 1);
  590. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][19], 0x00000000);
  591. PlayerTextDrawColor(playerid, Dots[playerid][19], 0xFFFFFFFF);
  592. PlayerTextDrawLetterSize(playerid, Dots[playerid][19], 0.33, 1.60);
  593. PlayerTextDrawShow(playerid, Dots[playerid][19]);
  594. Dots[playerid][20] = CreatePlayerTextDraw(playerid, 482.300000, 360.000000+35.0, ".");
  595. PlayerTextDrawFont(playerid, Dots[playerid][20], 1);
  596. PlayerTextDrawBackgroundColor(playerid, Dots[playerid][20], 0x00000000);
  597. PlayerTextDrawColor(playerid, Dots[playerid][20], 0xFFFFFFFF);
  598. PlayerTextDrawLetterSize(playerid, Dots[playerid][20], 0.33, 1.60);
  599. PlayerTextDrawShow(playerid, Dots[playerid][20]);
  600. kmh[playerid][0] = CreatePlayerTextDraw(playerid, 414.300000, 358.000000+35.0, "20");
  601. PlayerTextDrawFont(playerid, kmh[playerid][0], 2);
  602. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][0], 0x00000000);
  603. PlayerTextDrawColor(playerid, kmh[playerid][0], 0xFFFFFFFF);
  604. PlayerTextDrawLetterSize(playerid, kmh[playerid][0], 0.21, 0.98);
  605. PlayerTextDrawShow(playerid, kmh[playerid][0]);
  606. kmh[playerid][1] = CreatePlayerTextDraw(playerid, 408.600000, 342.000000+35.0, "40");
  607. PlayerTextDrawFont(playerid, kmh[playerid][1], 2);
  608. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][1], 0x00000000);
  609. PlayerTextDrawColor(playerid, kmh[playerid][1], 0xFFFFFFFF);
  610. PlayerTextDrawLetterSize(playerid, kmh[playerid][1], 0.21, 0.98);
  611. PlayerTextDrawShow(playerid, kmh[playerid][1]);
  612. kmh[playerid][2] = CreatePlayerTextDraw(playerid, 409.000000, 324.000000+35.0, "60");
  613. PlayerTextDrawFont(playerid, kmh[playerid][2], 2);
  614. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][2], 0x00000000);
  615. PlayerTextDrawColor(playerid, kmh[playerid][2], 0xFFFFFFFF);
  616. PlayerTextDrawLetterSize(playerid, kmh[playerid][2], 0.21, 0.98);
  617. PlayerTextDrawShow(playerid, kmh[playerid][2]);
  618. kmh[playerid][3] = CreatePlayerTextDraw(playerid, 417.600000, 309.600000+35.0, "80");
  619. PlayerTextDrawFont(playerid, kmh[playerid][3], 2);
  620. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][3], 0x00000000);
  621. PlayerTextDrawColor(playerid, kmh[playerid][3], 0xFFFFFFFF);
  622. PlayerTextDrawLetterSize(playerid, kmh[playerid][3], 0.21, 0.98);
  623. PlayerTextDrawShow(playerid, kmh[playerid][3]);
  624. kmh[playerid][4] = CreatePlayerTextDraw(playerid, 426.400000, 294.900000+35.0, "100");
  625. PlayerTextDrawFont(playerid, kmh[playerid][4], 2);
  626. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][4], 0x00000000);
  627. PlayerTextDrawColor(playerid, kmh[playerid][4], 0xFFFFFFFF);
  628. PlayerTextDrawLetterSize(playerid, kmh[playerid][4], 0.18, 0.98);
  629. PlayerTextDrawShow(playerid, kmh[playerid][4]);
  630. kmh[playerid][5] = CreatePlayerTextDraw(playerid, 447.500000, 291.400000+35.0, "120");
  631. PlayerTextDrawFont(playerid, kmh[playerid][5], 2);
  632. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][5], 0x00000000);
  633. PlayerTextDrawColor(playerid, kmh[playerid][5], 0xFFFFFFFF);
  634. PlayerTextDrawLetterSize(playerid, kmh[playerid][5], 0.18, 0.98);
  635. PlayerTextDrawShow(playerid, kmh[playerid][5]);
  636. kmh[playerid][6] = CreatePlayerTextDraw(playerid, 464.500000, 297.000000+35.0, "140");
  637. PlayerTextDrawFont(playerid, kmh[playerid][6], 2);
  638. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][6], 0x00000000);
  639. PlayerTextDrawColor(playerid, kmh[playerid][6], 0xFFFFFFFF);
  640. PlayerTextDrawLetterSize(playerid, kmh[playerid][6], 0.18, 0.98);
  641. PlayerTextDrawShow(playerid, kmh[playerid][6]);
  642. kmh[playerid][7] = CreatePlayerTextDraw(playerid, 474.000000, 311.700000+35.0, "160");
  643. PlayerTextDrawFont(playerid, kmh[playerid][7], 2);
  644. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][7], 0x00000000);
  645. PlayerTextDrawColor(playerid, kmh[playerid][7], 0xFFFFFFFF);
  646. PlayerTextDrawLetterSize(playerid, kmh[playerid][7], 0.18, 0.98);
  647. PlayerTextDrawShow(playerid, kmh[playerid][7]);
  648. kmh[playerid][8] = CreatePlayerTextDraw(playerid, 481.200000, 328.300000+35.0, "180");
  649. PlayerTextDrawFont(playerid, kmh[playerid][8], 2);
  650. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][8], 0x00000000);
  651. PlayerTextDrawColor(playerid, kmh[playerid][8], 0xFFFFFFFF);
  652. PlayerTextDrawLetterSize(playerid, kmh[playerid][8], 0.18, 0.98);
  653. PlayerTextDrawShow(playerid, kmh[playerid][8]);
  654. kmh[playerid][9] = CreatePlayerTextDraw(playerid, 477.800000, 347.200000+35.0, "200");
  655. PlayerTextDrawFont(playerid, kmh[playerid][9], 2);
  656. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][9], 0x00000000);
  657. PlayerTextDrawColor(playerid, kmh[playerid][9], 0xFFFFFFFF);
  658. PlayerTextDrawLetterSize(playerid, kmh[playerid][9], 0.18, 0.98);
  659. PlayerTextDrawShow(playerid, kmh[playerid][9]);
  660. kmh[playerid][10] = CreatePlayerTextDraw(playerid, 468.700000, 364.400000+35.0, "220");
  661. PlayerTextDrawFont(playerid, kmh[playerid][10], 2);
  662. PlayerTextDrawBackgroundColor(playerid, kmh[playerid][10], 0x00000000);
  663. PlayerTextDrawColor(playerid, kmh[playerid][10], 0xFFFFFFFF);
  664. PlayerTextDrawLetterSize(playerid, kmh[playerid][10], 0.18, 0.98);
  665. PlayerTextDrawShow(playerid, kmh[playerid][10]);
  666. new Float:rotation = 319;
  667. for(new q = 13; q >= 0; q--)
  668. {
  669. new Float:Pos[14][2];
  670. RotationXY(446.6, 358+35.0, Pos[q][0], Pos[q][1], rotation, (q + 1) * 5);
  671. if(q == 0)
  672. {
  673. Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], "~l~.");
  674. }
  675. else
  676. {
  677. Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], ".");
  678. }
  679. if(q > 0) { PlayerTextDrawColor(playerid, Spee[playerid][q], 0x8B0000FF); }
  680. if(q==1)
  681. {
  682. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x8B0000FF);
  683. PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
  684. }
  685. else if(q==0)
  686. {
  687. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x000000FF);
  688. PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
  689. }
  690. else
  691. {
  692. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x00000000);
  693. }
  694. PlayerTextDrawLetterSize(playerid, Spee[playerid][q], 0.73, -2.60);
  695. PlayerTextDrawShow(playerid, Spee[playerid][q]);
  696. }
  697.  
  698. new Float:rotation2 = rotation - 180;
  699. for(new y; y < 4; y++)
  700. {
  701. new Float:Pos1[4][2];
  702. RotationXY(446.6, 358+35.0, Pos1[y][0], Pos1[y][1], rotation2, (y + 1) * 5);
  703. Spee2[playerid][y] = CreatePlayerTextDraw(playerid, Pos1[y][0], Pos1[y][1], "~l~.");
  704. PlayerTextDrawBackgroundColor(playerid, Spee2[playerid][y], 0x000000FF);
  705. PlayerTextDrawLetterSize(playerid, Spee2[playerid][y], 0.73, -2.60);
  706. PlayerTextDrawColor(playerid, Spee2[playerid][y], 0x000000FF);
  707. PlayerTextDrawSetOutline(playerid, Spee2[playerid][y], 1);
  708. PlayerTextDrawShow(playerid, Spee2[playerid][y]);
  709. }
  710. // Fuel
  711. if(!IsNonFuelVehicle(vehid))
  712. {
  713. fuel3[playerid] = CreatePlayerTextDraw(playerid, 538.000000, 347.000000, "_");
  714. PlayerTextDrawFont(playerid, fuel3[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  715. PlayerTextDrawBackgroundColor(playerid, fuel3[playerid], 0x00000000);
  716. PlayerTextDrawSetPreviewModel(playerid, fuel3[playerid], 19159);
  717. PlayerTextDrawTextSize(playerid, fuel3[playerid], 95.0, 95.0);
  718. PlayerTextDrawSetPreviewRot(playerid, fuel3[playerid], 90.0, 0.0, 0.0, 0.503);
  719. PlayerTextDrawColor(playerid, fuel3[playerid], 0x00000055);
  720. PlayerTextDrawShow(playerid, fuel3[playerid]);
  721. fuel2[playerid] = CreatePlayerTextDraw(playerid, 538.000000-20.0, 347.000000, "_");
  722. PlayerTextDrawFont(playerid, fuel2[playerid], TEXT_DRAW_FONT_MODEL_PREVIEW);
  723. PlayerTextDrawBackgroundColor(playerid, fuel2[playerid], 0x00000000);
  724. PlayerTextDrawSetPreviewModel(playerid, fuel2[playerid], 19159);
  725. PlayerTextDrawTextSize(playerid, fuel2[playerid], 95.0, 95.0);
  726. PlayerTextDrawSetPreviewRot(playerid, fuel2[playerid], 90.0, 0.0, 0.0, 4.0);
  727. PlayerTextDrawColor(playerid, fuel2[playerid], 0x000000FF);
  728. PlayerTextDrawShow(playerid, fuel2[playerid]);
  729. fuel1[playerid] = CreatePlayerTextDraw(playerid, 581.8-20.0, 377.3+35.0, ".");
  730. PlayerTextDrawBackgroundColor(playerid, fuel1[playerid], 0x00000000);
  731. PlayerTextDrawLetterSize(playerid, fuel1[playerid], 0.73, -2.60);
  732. PlayerTextDrawColor(playerid, fuel1[playerid], 0x8B0000FF);
  733. PlayerTextDrawShow(playerid, fuel1[playerid]);
  734. LinesFuel[playerid][0] = CreatePlayerTextDraw(playerid, 610.700000-20.0, 352.6+35.0, "_");
  735. PlayerTextDrawFont(playerid, LinesFuel[playerid][0], TEXT_DRAW_FONT_MODEL_PREVIEW);
  736. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][0], 0x00000000);
  737. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][0], 19449);
  738. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][0], 14.0, 14.0);
  739. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][0], 0.0, 0.0, 90.0, 1);
  740. PlayerTextDrawColor(playerid, LinesFuel[playerid][0], 0xFFFFFFFF);
  741. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][0], 1);
  742. PlayerTextDrawShow(playerid, LinesFuel[playerid][0]);
  743. LinesFuel[playerid][1] = CreatePlayerTextDraw(playerid,589.600000-20.0, 382.5+35.0, "_");
  744. PlayerTextDrawFont(playerid, LinesFuel[playerid][1], TEXT_DRAW_FONT_MODEL_PREVIEW);
  745. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][1], 0x00000000);
  746. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][1], 19449);
  747. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][1], 14.0, 14.0);
  748. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][1], 0.0, -70.0, 90.0, 1);
  749. PlayerTextDrawColor(playerid, LinesFuel[playerid][1], 0xFFFFFFFF);
  750. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][1], 1);
  751. PlayerTextDrawShow(playerid, LinesFuel[playerid][1]);
  752. LinesFuel[playerid][2] = CreatePlayerTextDraw(playerid,589.600000-20.0, 322.7+35.0, "_");
  753. PlayerTextDrawFont(playerid, LinesFuel[playerid][2], TEXT_DRAW_FONT_MODEL_PREVIEW);
  754. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][2], 0x00000000);
  755. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][2], 19449);
  756. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][2], 14.0, 14.0);
  757. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][2], 0.0, 70.0, 90.0, 1);
  758. PlayerTextDrawColor(playerid, LinesFuel[playerid][2], 0xFFFFFFFF);
  759. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][2], 1);
  760. PlayerTextDrawShow(playerid, LinesFuel[playerid][2]);
  761. LinesFuel[playerid][3] = CreatePlayerTextDraw(playerid,606.500000-20.0, 333.3+35.0, "_");
  762. PlayerTextDrawFont(playerid, LinesFuel[playerid][3], TEXT_DRAW_FONT_MODEL_PREVIEW);
  763. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][3], 0x00000000);
  764. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][3], 19449);
  765. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][3], 14.0, 14.0);
  766. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][3], 0.0, 35.0, 90.0, 1.5);
  767. PlayerTextDrawColor(playerid, LinesFuel[playerid][3], 0xFFFFFFFF);
  768. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][3], 1);
  769. PlayerTextDrawShow(playerid, LinesFuel[playerid][3]);
  770. LinesFuel[playerid][4] = CreatePlayerTextDraw(playerid,606.500000-20.0, 371.9+35.0, "_");
  771. PlayerTextDrawFont(playerid, LinesFuel[playerid][4], TEXT_DRAW_FONT_MODEL_PREVIEW);
  772. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][4], 0x00000000);
  773. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][4], 19449);
  774. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][4], 14.0, 14.0);
  775. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][4], 0.0, -35.0, 90.0, 1.5);
  776. PlayerTextDrawColor(playerid, LinesFuel[playerid][4], 0xFFFFFFFF);
  777. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][4], 1);
  778. PlayerTextDrawShow(playerid, LinesFuel[playerid][4]);
  779. LinesFuel[playerid][5] = CreatePlayerTextDraw(playerid, 594.000000-20.0, 352.0+35.0, "_");
  780. PlayerTextDrawFont(playerid, LinesFuel[playerid][5], TEXT_DRAW_FONT_MODEL_PREVIEW);
  781. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][5], 0x00000000);
  782. PlayerTextDrawSetPreviewModel(playerid, LinesFuel[playerid][5], 1650);
  783. PlayerTextDrawTextSize(playerid, LinesFuel[playerid][5], 14.0, 14.0);
  784. PlayerTextDrawSetPreviewRot(playerid, LinesFuel[playerid][5], 0.0, 0.0, 0.0, 0.7);
  785. PlayerTextDrawColor(playerid, LinesFuel[playerid][5], 0xFFFFFFFF);
  786. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][5], 1);
  787. PlayerTextDrawShow(playerid, LinesFuel[playerid][5]);
  788. LinesFuel[playerid][6] = CreatePlayerTextDraw(playerid, 586.000000-20.0, 383.0+35.0, "E");
  789. PlayerTextDrawFont(playerid, LinesFuel[playerid][6], 1);
  790. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][6], 0x00000000);
  791. PlayerTextDrawColor(playerid, LinesFuel[playerid][6], 0xFFFFFFFF);
  792. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][6], 1);
  793. PlayerTextDrawLetterSize(playerid, LinesFuel[playerid][6], 0.26, 1.52);
  794. PlayerTextDrawShow(playerid, LinesFuel[playerid][6]);
  795. LinesFuel[playerid][7] = CreatePlayerTextDraw(playerid, 586.000000-20.0, 321.7+35.0, "F");
  796. PlayerTextDrawFont(playerid, LinesFuel[playerid][7], 1);
  797. PlayerTextDrawBackgroundColor(playerid, LinesFuel[playerid][7], 0x00000000);
  798. PlayerTextDrawColor(playerid, LinesFuel[playerid][7], 0xFFFFFFFF);
  799. PlayerTextDrawAlignment(playerid, LinesFuel[playerid][7], 1);
  800. PlayerTextDrawLetterSize(playerid, LinesFuel[playerid][7], 0.26, 1.52);
  801. PlayerTextDrawShow(playerid, LinesFuel[playerid][7]);
  802. new Float:Frotation = 160 - ((100-Gas[GetPlayerVehicleID(playerid)])*1.4);
  803. if(Gas[GetPlayerVehicleID(playerid)] > 100) { Frotation = 160; }
  804. if(Gas[GetPlayerVehicleID(playerid)] < 0) { Frotation = 20; }
  805. for(new p; p < 7; p++)
  806. {
  807. new Float:FPos[7][2];
  808. RotationXY(581.8-20.0, 377.3+35.0, FPos[p][0], FPos[p][1], Frotation, (p + 1) * 5);
  809. FuelBar[playerid][p] = CreatePlayerTextDraw(playerid, FPos[p][0], FPos[p][1], ".");
  810. PlayerTextDrawBackgroundColor(playerid, FuelBar[playerid][p], 0x00000000);
  811. PlayerTextDrawLetterSize(playerid, FuelBar[playerid][p], 0.73, -2.60);
  812. PlayerTextDrawColor(playerid, FuelBar[playerid][p], 0x8B0000FF);
  813. PlayerTextDrawShow(playerid, FuelBar[playerid][p]);
  814. }
  815. }
  816. }
  817.  
  818. public DestroySpeedo(playerid)
  819. {
  820. PlayerTextDrawDestroy(playerid, speedo1[playerid]);
  821. PlayerTextDrawDestroy(playerid, speedo2[playerid]);
  822. PlayerTextDrawDestroy(playerid, MPHT[playerid]);
  823. PlayerTextDrawDestroy(playerid, kmhT[playerid]);
  824. PlayerTextDrawDestroy(playerid, fuel3[playerid]);
  825. PlayerTextDrawDestroy(playerid, fuel1[playerid]);
  826. PlayerTextDrawDestroy(playerid, fuel2[playerid]);
  827. for(new z; z < 21; z++)
  828. {
  829. if(z<11) { PlayerTextDrawDestroy(playerid, kmh[playerid][z]); }
  830. PlayerTextDrawDestroy(playerid, Dots[playerid][z]);
  831. }
  832. for(new z; z < 14; z++)
  833. {
  834. PlayerTextDrawDestroy(playerid, Spee[playerid][z]);
  835. PlayerTextDrawDestroy(playerid, LinesBig[playerid][z]);
  836. PlayerTextDrawDestroy(playerid, MPH[playerid][z]);
  837. if(z < 13) { PlayerTextDrawDestroy(playerid, LinesSmall[playerid][z]); }
  838. if(z<7) { PlayerTextDrawDestroy(playerid, FuelBar[playerid][z]); }
  839. if(z<8) { PlayerTextDrawDestroy(playerid, LinesFuel[playerid][z]); PlayerTextDrawDestroy(playerid, Circles[playerid][z]); }
  840. }
  841. for(new z; z < 4; z++)
  842. {
  843. PlayerTextDrawDestroy(playerid, Spee2[playerid][z]);
  844. }
  845. }
  846.  
  847. public CheckGas()
  848. {
  849. for(new i = 1; i<2000; i++)
  850. {
  851. new engine,lights,alarm,doors,bonnet,boot,objective;
  852. GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
  853. if (engine == 1 && !IsNonFuelVehicle(i))
  854. {
  855. if(Gas[i] >= 1)
  856. {
  857. Gas[i]--;
  858. }
  859. else {
  860. SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
  861. }
  862. if(Gas[i] > 100)
  863. {
  864. Gas[i] = 100;
  865. }
  866. for(new y; y<MAX_PLAYERS; y++)
  867. {
  868. if(IsPlayerConnected(y))
  869. {
  870. if(IsPlayerInAnyVehicle(y) && GetPlayerVehicleID(y) == i)
  871. {
  872. if(GetPlayerVehicleSeat(y) == 0 || GetPlayerVehicleSeat(y) == 1)
  873. {
  874. new Float:Frotation = 160 - ((100-Gas[i])*1.4);
  875. if(Gas[i] > 100) { Frotation = 160; }
  876. if(Gas[i] < 0) { Frotation = 20; }
  877. for(new p; p < 7; p++)
  878. {
  879. PlayerTextDrawDestroy(y, FuelBar[y][p]);
  880. new Float:FPos[7][2];
  881. RotationXY(581.8-20.0, 377.3+35.0, FPos[p][0], FPos[p][1], Frotation, (p + 1) * 5);
  882. FuelBar[y][p] = CreatePlayerTextDraw(y, FPos[p][0], FPos[p][1], ".");
  883. PlayerTextDrawBackgroundColor(y, FuelBar[y][p], 0x00000000);
  884. PlayerTextDrawLetterSize(y, FuelBar[y][p], 0.73, -2.60);
  885. PlayerTextDrawColor(y, FuelBar[y][p], 0x8B0000FF);
  886. PlayerTextDrawShow(y, FuelBar[y][p]);
  887. }
  888. if(Gas[i] <= 10) { PlayerPlaySound(y, 1085, 0.0, 0.0, 0.0); }
  889. }
  890. }
  891. }
  892. }
  893. }
  894. }
  895. return 1;
  896. }
  897.  
  898. stock Float:GetSpeed(playerid)
  899. {
  900. new Float:p[3];
  901. GetVehicleVelocity(GetPlayerVehicleID(playerid),p[0],p[1],p[2]);
  902. new Float:speed = (150.0*(p[0]*p[0]+p[1]*p[1])) / 1.61;
  903. return speed;
  904. }
  905.  
  906. stock RotationXY(Float:StartPosX, Float:StartPosY, &Float:NewX, &Float:NewY, Float:rotation, Float:dist)
  907. {
  908. NewX = StartPosX + (dist * floatsin(rotation, degrees));
  909. NewY = StartPosY + (dist * floatcos(rotation, degrees));
  910. }
  911.  
  912. stock IsNonFuelVehicle(vehicleid)
  913. {
  914. switch(GetVehicleModel(vehicleid))
  915. {
  916. case 592,577,511,512,593,520,553,476,519,460,513,548,
  917. 417,488,563,447,509,481,510,472,595,
  918. 484,430: return 1;
  919. }
  920. return 0;
  921. }
  922.  
  923. public OnFilterScriptInit()
  924. {
  925. for(new i = 0; i < MAX_VEHICLES; i++)
  926. {
  927. Gas[i] = 100;
  928. }
  929. checkgastimer = SetTimer("CheckGas", 45000, 1);
  930. print("** Speedometer by Daddy Yankee **");
  931. return 1;
  932. }
  933.  
  934. public OnFilterScriptExit()
  935. {
  936. for(new i; i<MAX_PLAYERS; i++)
  937. {
  938. if(IsPlayerConnected(i))
  939. {
  940. if(IsPlayerInAnyVehicle(i))
  941. {
  942. DestroySpeedo(i);
  943. oldspeed[i] = 0;
  944. }
  945. }
  946. }
  947. KillTimer(checkgastimer);
  948. print("** Speedometer by Daddy Yankee **");
  949. return 1;
  950. }
  951.  
  952. public OnPlayerConnect(playerid)
  953. {
  954. oldspeed[playerid] = 0;
  955. }
  956.  
  957. public OnPlayerUpdate(playerid)
  958. {
  959. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  960. {
  961. if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
  962. {
  963. new vehid = GetPlayerVehicleID(playerid);
  964. if(GetVehicleModel(vehid) != 481 && GetVehicleModel(vehid) != 509 && GetVehicleModel(vehid) != 510)
  965. {
  966. if(oldspeed[playerid] != GetSpeed(playerid))
  967. {
  968. new Float:rotation;
  969. if(GetSpeed(playerid) >= 0 && GetSpeed(playerid) < 10)
  970. {
  971. rotation = 319 - (GetSpeed(playerid) * 0.8);
  972. }
  973. else if(GetSpeed(playerid) >= 10 && GetSpeed(playerid) <= 140)
  974. {
  975. rotation = 311 - ((GetSpeed(playerid) - 10) * 2.076923);
  976. }
  977. else
  978. {
  979. rotation = 41;
  980. }
  981. for(new q = 13; q >= 0; q--)
  982. {
  983. PlayerTextDrawDestroy(playerid, Spee[playerid][q]);
  984. new Float:Pos[14][2];
  985. RotationXY(446.6, 358+35.0, Pos[q][0], Pos[q][1], rotation, (q + 1) * 5);
  986. if(q == 0)
  987. {
  988. Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], "~l~.");
  989. }
  990. else
  991. {
  992. Spee[playerid][q] = CreatePlayerTextDraw(playerid, Pos[q][0], Pos[q][1], ".");
  993. }
  994. if(q > 0) { PlayerTextDrawColor(playerid, Spee[playerid][q], 0x8B0000FF); }
  995. if(q==1)
  996. {
  997. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x8B0000FF);
  998. PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
  999. }
  1000. else if(q==0)
  1001. {
  1002. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x000000FF);
  1003. PlayerTextDrawSetOutline(playerid, Spee[playerid][q], 1);
  1004. }
  1005. else
  1006. {
  1007. PlayerTextDrawBackgroundColor(playerid, Spee[playerid][q], 0x00000000);
  1008. }
  1009. PlayerTextDrawLetterSize(playerid, Spee[playerid][q], 0.73, -2.60);
  1010. PlayerTextDrawShow(playerid, Spee[playerid][q]);
  1011. }
  1012.  
  1013. new Float:rotation2 = rotation - 180;
  1014. for(new x; x < 4; x++)
  1015. {
  1016. PlayerTextDrawDestroy(playerid, Spee2[playerid][x]);
  1017. new Float:Pos1[4][2];
  1018. RotationXY(446.6, 358+35.0, Pos1[x][0], Pos1[x][1], rotation2, (x + 1) * 5);
  1019. Spee2[playerid][x] = CreatePlayerTextDraw(playerid, Pos1[x][0], Pos1[x][1], "~l~.");
  1020. PlayerTextDrawBackgroundColor(playerid, Spee2[playerid][x], 0x000000FF);
  1021. PlayerTextDrawLetterSize(playerid, Spee2[playerid][x], 0.73, -2.60);
  1022. PlayerTextDrawColor(playerid, Spee2[playerid][x], 0x000000FF);
  1023. PlayerTextDrawSetOutline(playerid, Spee2[playerid][x], 1);
  1024. PlayerTextDrawShow(playerid, Spee2[playerid][x]);
  1025. }
  1026. oldspeed[playerid] = GetSpeed(playerid);
  1027. }
  1028. }
  1029. }
  1030. }
  1031. return 1;
  1032. }
  1033.  
  1034. public OnPlayerStateChange(playerid, newstate, oldstate)
  1035. {
  1036. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER || GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
  1037. {
  1038. new vehid = GetPlayerVehicleID(playerid);
  1039. if(GetVehicleModel(vehid) != 481 && GetVehicleModel(vehid) != 509 && GetVehicleModel(vehid) != 510)
  1040. {
  1041. if(GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1)
  1042. {
  1043. CreateSpeedo(playerid);
  1044. }
  1045. }
  1046. }
  1047. if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
  1048. {
  1049. DestroySpeedo(playerid);
  1050. oldspeed[playerid] = 0;
  1051. }
  1052. return 1;
  1053. }
  1054.  
  1055. public OnPlayerExitVehicle(playerid, vehicleid)
  1056. {
  1057. DestroySpeedo(playerid);
  1058. return 1;
  1059. }[/CODE]
Advertisement
Add Comment
Please, Sign In to add comment