Advertisement
Guest User

Speedometer v1.0 by Daddy Yankee

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