PgMNA

Speed-0-Meter by MNA [v2]

Jul 16th, 2018
181
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <foreach>
  7.  
  8. //togglespeedo
  9. new Speedometer;
  10.  
  11. //speedo1
  12. new Text:Textdraw0;
  13. new Text:Textdraw1;
  14. new Text:Textdraw2;
  15. new PlayerText:Textdraw3[MAX_PLAYERS];
  16. new Text:Textdraw4;
  17. new Text:Textdraw5;
  18. new PlayerText:Textdraw6[MAX_PLAYERS];
  19. new PlayerText:Textdraw7[MAX_PLAYERS];
  20. new PlayerText:Textdraw8[MAX_PLAYERS];
  21. new PlayerText:Textdraw9[MAX_PLAYERS];
  22. new PlayerText:Textdraw10[MAX_PLAYERS];
  23. new PlayerText:Textdraw11[MAX_PLAYERS];
  24. new PlayerText:Textdraw12[MAX_PLAYERS];
  25.  
  26. //speedo2
  27.  
  28. new Text:speedom0;
  29. new Text:speedom1;
  30. new Text:speedom2;
  31. new PlayerText:speedom3[MAX_PLAYERS];
  32. new PlayerText:speedom4[MAX_PLAYERS];
  33. new PlayerText:speedom5[MAX_PLAYERS];
  34. new PlayerText:speedom6[MAX_PLAYERS];
  35. new PlayerText:speedom7[MAX_PLAYERS];
  36. new PlayerText:speedom8[MAX_PLAYERS];
  37. new PlayerText:speedom9[MAX_PLAYERS];
  38. new PlayerText:speedom10[MAX_PLAYERS];
  39. new PlayerText:speedom11[MAX_PLAYERS];
  40. new PlayerText:speedom12[MAX_PLAYERS];
  41. new PlayerText:speedom13[MAX_PLAYERS];
  42. new PlayerText:speedom14[MAX_PLAYERS];
  43. new PlayerText:speedom15[MAX_PLAYERS];
  44. new PlayerText:speedom16[MAX_PLAYERS];
  45. new Text:speedom17;
  46. new Text:speedom18;
  47. new Text:speedom19;
  48. new PlayerText:speedom20[MAX_PLAYERS];
  49. new PlayerText:speedom21[MAX_PLAYERS];
  50. new PlayerText:speedom22[MAX_PLAYERS];
  51. new Text:speedom23;
  52.  
  53. //speed02
  54. new Text:speedm0;
  55. new Text:speedm1;
  56. new PlayerText:speedm2[MAX_PLAYERS];
  57. new Text:speedm3;
  58. new PlayerText:speedm4[MAX_PLAYERS];
  59. new PlayerText:speedm5[MAX_PLAYERS];
  60. new Text:speedm6;
  61. new PlayerText:speedm7[MAX_PLAYERS];
  62. new PlayerText:speedm8[MAX_PLAYERS];
  63. new PlayerText:speedm9[MAX_PLAYERS];
  64. new PlayerText:speedm10[MAX_PLAYERS];
  65.  
  66. new VehicleName2[][] =
  67. {
  68. "Landstalker",
  69. "Bravura",
  70. "Buffalo",
  71. "Linerunner",
  72. "Pereniel",
  73. "Sentinel",
  74. "Dumper",
  75. "Firetruck",
  76. "Trashmaster",
  77. "Stretch",
  78. "Manana",
  79. "Infernus",
  80. "Voodoo",
  81. "Pony",
  82. "Mule",
  83. "Cheetah",
  84. "Ambulance",
  85. "Leviathan",
  86. "Moonbeam",
  87. "Esperanto",
  88. "Taxi",
  89. "Washington",
  90. "Bobcat",
  91. "Mr Whoopee",
  92. "BF Injection",
  93. "Hunter",
  94. "Premier",
  95. "Enforcer",
  96. "Securicar",
  97. "Banshee",
  98. "Predator",
  99. "Bus",
  100. "Rhino",
  101. "Barracks",
  102. "Hotknife",
  103. "Trailer",
  104. "Previon",
  105. "Coach",
  106. "Cabbie",
  107. "Stallion",
  108. "Rumpo",
  109. "RC Bandit",
  110. "Romero",
  111. "Packer",
  112. "Monster",
  113. "Admiral",
  114. "Squalo",
  115. "Seasparrow",
  116. "Pizzaboy",
  117. "Tram",
  118. "Trailer",
  119. "Turismo",
  120. "Speeder",
  121. "Reefer",
  122. "Tropic",
  123. "Flatbed",
  124. "Yankee",
  125. "Caddy",
  126. "Solair",
  127. "RC Van",
  128. "Skimmer",
  129. "PCJ-600",
  130. "Faggio",
  131. "Freeway",
  132. "RC Baron",
  133. "RC Raider",
  134. "Glendale",
  135. "Oceanic",
  136. "Sanchez",
  137. "Sparrow",
  138. "Patriot",
  139. "Quad",
  140. "Coastguard",
  141. "Dinghy",
  142. "Hermes",
  143. "Sabre",
  144. "Rustler",
  145. "ZR-350",
  146. "Walton",
  147. "Regina",
  148. "Comet",
  149. "BMX",
  150. "Burrito",
  151. "Camper",
  152. "Marquis",
  153. "Baggage",
  154. "Dozer",
  155. "Maverick",
  156. "News Chopper",
  157. "Rancher",
  158. "FBI Rancher",
  159. "Virgo",
  160. "Greenwood",
  161. "Jetmax",
  162. "Hotring",
  163. "Sandking",
  164. "Blista Compact",
  165. "PD Maverick",
  166. "ProtoType",
  167. "Benson",
  168. "Mesa",
  169. "RC Goblin",
  170. "Hotring",
  171. "Hotring",
  172. "Bloodring",
  173. "Rancher",
  174. "Super GT",
  175. "Elegant",
  176. "Journey",
  177. "Bike",
  178. "Mountain Bike",
  179. "Beagle",
  180. "Cropdust",
  181. "Stunt",
  182. "Tanker",
  183. "RoadTrain",
  184. "Nebula",
  185. "Majestic",
  186. "Buccaneer",
  187. "Shamal",
  188. "Hydra",
  189. "FCR-900",
  190. "NRG-500",
  191. "HPV1000",
  192. "Cement",
  193. "Tow Truck",
  194. "Fortune",
  195. "Cadrona",
  196. "FBI Truck",
  197. "Willard",
  198. "Forklift",
  199. "Tractor",
  200. "Combine",
  201. "Feltzer",
  202. "Remington",
  203. "Slamvan",
  204. "Blade",
  205. "Freight",
  206. "Streak",
  207. "Vortex",
  208. "Vincent",
  209. "Bullet",
  210. "Clover",
  211. "Sadler",
  212. "Firetruck",
  213. "Hustler",
  214. "Intruder",
  215. "Primo",
  216. "Cargobob",
  217. "Tampa",
  218. "Sunrise",
  219. "Merit",
  220. "Utility",
  221. "Nevada",
  222. "Yosemite",
  223. "Windsor",
  224. "Monster",
  225. "Monster",
  226. "Uranus",
  227. "Jester",
  228. "Sultan",
  229. "Stratum",
  230. "Elegy",
  231. "Raindance",
  232. "RC Tiger",
  233. "Flash",
  234. "Tahoma",
  235. "Savanna",
  236. "Bandito",
  237. "Freight",
  238. "Trailer",
  239. "Kart",
  240. "Mower",
  241. "Duneride",
  242. "Sweeper",
  243. "Broadway",
  244. "Tornado",
  245. "AT-400",
  246. "DFT-30",
  247. "Huntley",
  248. "Stafford",
  249. "BF-400",
  250. "Newsvan",
  251. "Tug",
  252. "Trailer",
  253. "Emperor",
  254. "Wayfarer",
  255. "Euros",
  256. "Hotdog",
  257. "Club",
  258. "Trailer",
  259. "Trailer",
  260. "Andromada",
  261. "Dodo",
  262. "RC Cam",
  263. "Launch",
  264. "Police Car",
  265. "Police Car",
  266. "Police Car",
  267. "Police Ranger",
  268. "Picador",
  269. "S.W.A.T",
  270. "Alpha",
  271. "Phoenix",
  272. "Glendale",
  273. "Sadler",
  274. "Luggage Trailer",
  275. "Luggage Trailer",
  276. "Stair Trailer",
  277. "Boxville",
  278. "Farm Plow",
  279. "Utility Trailer"
  280. };
  281.  
  282. //#if defined FILTERSCRIPT
  283. new speed0[MAX_PLAYERS];
  284.  
  285. public OnFilterScriptInit()
  286. {
  287. print("\n--------------------------------------");
  288. print(" Advance Speed-O-Meter by MNA - Loaded");
  289. print("--------------------------------------\n");
  290. //dont remove credits
  291. Speedometer = 1;
  292.  
  293.  
  294. //speedo1
  295. speedom0 = TextDrawCreate(570.125000, 422.666778, "usebox");
  296. TextDrawLetterSize(speedom0, 0.000000, 1.562958);
  297. TextDrawTextSize(speedom0, 124.250000, 0.000000);
  298. TextDrawAlignment(speedom0, 1);
  299. TextDrawColor(speedom0, 0);
  300. TextDrawUseBox(speedom0, true);
  301. TextDrawBoxColor(speedom0, 68);
  302. TextDrawSetShadow(speedom0, 0);
  303. TextDrawSetOutline(speedom0, 0);
  304. TextDrawFont(speedom0, 0);
  305.  
  306. speedom1 = TextDrawCreate(90.000000, 412.999938, "-");
  307. TextDrawLetterSize(speedom1, 36.082534, 1.133329);
  308. TextDrawAlignment(speedom1, 1);
  309. TextDrawColor(speedom1, -2139062017);
  310. TextDrawSetShadow(speedom1, 0);
  311. TextDrawSetOutline(speedom1, 1);
  312. TextDrawBackgroundColor(speedom1, 51);
  313. TextDrawFont(speedom1, 1);
  314. TextDrawSetProportional(speedom1, 1);
  315.  
  316. speedom2 = TextDrawCreate(88.500000, 431.500213, "-");
  317. TextDrawLetterSize(speedom2, 36.082534, 1.133329);
  318. TextDrawAlignment(speedom2, 1);
  319. TextDrawColor(speedom2, -2139062017);
  320. TextDrawSetShadow(speedom2, 0);
  321. TextDrawSetOutline(speedom2, 1);
  322. TextDrawBackgroundColor(speedom2, 51);
  323. TextDrawFont(speedom2, 1);
  324. TextDrawSetProportional(speedom2, 1);
  325.  
  326. speedom17 = TextDrawCreate(259.375000, 401.916687, "~>~");
  327. TextDrawLetterSize(speedom17, 0.449999, 1.600000);
  328. TextDrawAlignment(speedom17, 1);
  329. TextDrawColor(speedom17, -1);
  330. TextDrawSetShadow(speedom17, 0);
  331. TextDrawSetOutline(speedom17, 1);
  332. TextDrawBackgroundColor(speedom17, 51);
  333. TextDrawFont(speedom17, 1);
  334. TextDrawSetProportional(speedom17, 1);
  335.  
  336. speedom18 = TextDrawCreate(383.750000, 403.083526, "~<~");
  337. TextDrawLetterSize(speedom18, 0.449999, 1.600000);
  338. TextDrawAlignment(speedom18, 1);
  339. TextDrawColor(speedom18, -1);
  340. TextDrawSetShadow(speedom18, 0);
  341. TextDrawSetOutline(speedom18, 1);
  342. TextDrawBackgroundColor(speedom18, 51);
  343. TextDrawFont(speedom18, 1);
  344. TextDrawSetProportional(speedom18, 1);
  345.  
  346. speedom19 = TextDrawCreate(528.125000, 437.500000, "Km/H");
  347. TextDrawLetterSize(speedom19, 0.342498, 1.144999);
  348. TextDrawAlignment(speedom19, 1);
  349. TextDrawColor(speedom19, 16711935);
  350. TextDrawSetShadow(speedom19, 0);
  351. TextDrawSetOutline(speedom19, 1);
  352. TextDrawBackgroundColor(speedom19, 51);
  353. TextDrawFont(speedom19, 2);
  354. TextDrawSetProportional(speedom19, 1);
  355.  
  356. speedom23 = TextDrawCreate(117.500000, 442.750091, "-");
  357. TextDrawLetterSize(speedom23, 7.244997, 0.567498);
  358. TextDrawAlignment(speedom23, 1);
  359. TextDrawColor(speedom23, -2139062017);
  360. TextDrawSetShadow(speedom23, 0);
  361. TextDrawSetOutline(speedom23, 1);
  362. TextDrawBackgroundColor(speedom23, 51);
  363. TextDrawFont(speedom23, 1);
  364. TextDrawSetProportional(speedom23, 1);
  365.  
  366. //speedomter1
  367. Textdraw0 = TextDrawCreate(379.500000, 391.166717, "usebox");
  368. TextDrawLetterSize(Textdraw0, 0.000000, 6.009722);
  369. TextDrawTextSize(Textdraw0, 259.250000, 0.000000);
  370. TextDrawAlignment(Textdraw0, 1);
  371. TextDrawColor(Textdraw0, 0);
  372. TextDrawUseBox(Textdraw0, true);
  373. TextDrawBoxColor(Textdraw0, 102);
  374. TextDrawSetShadow(Textdraw0, 0);
  375. TextDrawSetOutline(Textdraw0, 0);
  376. TextDrawFont(Textdraw0, 0);
  377.  
  378. Textdraw1 = TextDrawCreate(254.375000, 384.416778, "-");
  379. TextDrawLetterSize(Textdraw1, 9.266877, 0.952499);
  380. TextDrawAlignment(Textdraw1, 1);
  381. TextDrawColor(Textdraw1, -2139062017);
  382. TextDrawSetShadow(Textdraw1, 0);
  383. TextDrawSetOutline(Textdraw1, 1);
  384. TextDrawBackgroundColor(Textdraw1, 51);
  385. TextDrawFont(Textdraw1, 1);
  386. TextDrawSetProportional(Textdraw1, 1);
  387.  
  388. Textdraw2 = TextDrawCreate(251.625000, 440.250183, "-");
  389. TextDrawLetterSize(Textdraw2, 9.266877, 0.952499);
  390. TextDrawAlignment(Textdraw2, 1);
  391. TextDrawColor(Textdraw2, -2139062017);
  392. TextDrawSetShadow(Textdraw2, 0);
  393. TextDrawSetOutline(Textdraw2, 1);
  394. TextDrawBackgroundColor(Textdraw2, 51);
  395. TextDrawFont(Textdraw2, 1);
  396. TextDrawSetProportional(Textdraw2, 1);
  397.  
  398. Textdraw4 = TextDrawCreate(375.750000, 410.416687, "usebox");
  399. TextDrawLetterSize(Textdraw4, 0.000000, 1.949534);
  400. TextDrawTextSize(Textdraw4, 336.750000, 0.000000);
  401. TextDrawAlignment(Textdraw4, 1);
  402. TextDrawColor(Textdraw4, 0);
  403. TextDrawUseBox(Textdraw4, true);
  404. TextDrawBoxColor(Textdraw4, 255);
  405. TextDrawSetShadow(Textdraw4, 0);
  406. TextDrawSetOutline(Textdraw4, 0);
  407. TextDrawFont(Textdraw4, 0);
  408.  
  409. Textdraw5 = TextDrawCreate(336.250000, 426.416748, "-");
  410. TextDrawLetterSize(Textdraw5, 2.901256, 0.398333);
  411. TextDrawAlignment(Textdraw5, 1);
  412. TextDrawColor(Textdraw5, -2139062017);
  413. TextDrawSetShadow(Textdraw5, 0);
  414. TextDrawSetOutline(Textdraw5, 1);
  415. TextDrawBackgroundColor(Textdraw5, 51);
  416. TextDrawFont(Textdraw5, 1);
  417. TextDrawSetProportional(Textdraw5, 1);
  418.  
  419. //speed0meter3
  420. speedm0 = TextDrawCreate(409.500000, 410.999969, "usebox");
  421. TextDrawLetterSize(speedm0, 0.000000, 3.053708);
  422. TextDrawTextSize(speedm0, 285.500000, 0.000000);
  423. TextDrawAlignment(speedm0, 1);
  424. TextDrawColor(speedm0, 0);
  425. TextDrawUseBox(speedm0, true);
  426. TextDrawBoxColor(speedm0, 170);
  427. TextDrawSetShadow(speedm0, 0);
  428. TextDrawSetOutline(speedm0, 0);
  429. TextDrawFont(speedm0, 0);
  430.  
  431. speedm1 = TextDrawCreate(229.375000, 389.083496, "LD_BEAT:chit");
  432. TextDrawLetterSize(speedm1, 0.000000, 0.000000);
  433. TextDrawTextSize(speedm1, 85.625000, 68.833312);
  434. TextDrawAlignment(speedm1, 1);
  435. TextDrawColor(speedm1, 170);
  436. TextDrawSetShadow(speedm1, 0);
  437. TextDrawSetOutline(speedm1, 0);
  438. TextDrawFont(speedm1, 4);
  439.  
  440. speedm3 = TextDrawCreate(268.750000, 429.333312, "Km/H");
  441. TextDrawLetterSize(speedm3, 0.240625, 1.016666);
  442. TextDrawAlignment(speedm3, 1);
  443. TextDrawColor(speedm3, 16777215);
  444. TextDrawSetShadow(speedm3, 0);
  445. TextDrawSetOutline(speedm3, 1);
  446. TextDrawBackgroundColor(speedm3, 51);
  447. TextDrawFont(speedm3, 1);
  448. TextDrawSetProportional(speedm3, 1);
  449.  
  450. speedm6 = TextDrawCreate(286.250000, 429.916656, "-");
  451. TextDrawLetterSize(speedm6, 6.271872, 0.672499);
  452. TextDrawAlignment(speedm6, 1);
  453. TextDrawColor(speedm6, -1);
  454. TextDrawSetShadow(speedm6, 0);
  455. TextDrawSetOutline(speedm6, 1);
  456. TextDrawBackgroundColor(speedm6, 51);
  457. TextDrawFont(speedm6, 1);
  458. TextDrawSetProportional(speedm6, 1);
  459.  
  460. return 1;
  461. }
  462.  
  463. public OnFilterScriptExit()
  464. {
  465. return 1;
  466. }
  467.  
  468. public OnPlayerConnect(playerid)
  469. {
  470. //speedomter1
  471. speedom4[playerid] = CreatePlayerTextDraw(playerid, 305.125000, 423.833648, "100");
  472. PlayerTextDrawLetterSize(playerid, speedom4[playerid], 0.000000, 1.111575);
  473. PlayerTextDrawTextSize(playerid, speedom4[playerid], 269.875000, 0.000000);
  474. PlayerTextDrawAlignment(playerid, speedom4[playerid], 1);
  475. PlayerTextDrawColor(playerid, speedom4[playerid], 16777215);
  476. PlayerTextDrawUseBox(playerid, speedom4[playerid], true);
  477. PlayerTextDrawBoxColor(playerid, speedom4[playerid], 4723199);
  478. PlayerTextDrawSetShadow(playerid, speedom4[playerid], 0);
  479. PlayerTextDrawSetOutline(playerid, speedom4[playerid], 0);
  480. PlayerTextDrawFont(playerid, speedom4[playerid], 0);
  481.  
  482. speedom5[playerid] = CreatePlayerTextDraw(playerid, 341.125000, 423.666931, "120");
  483. PlayerTextDrawLetterSize(playerid, speedom5[playerid], 0.000000, 1.111575);
  484. PlayerTextDrawTextSize(playerid, speedom5[playerid], 307.375000, 0.000000);
  485. PlayerTextDrawAlignment(playerid, speedom5[playerid], 1);
  486. PlayerTextDrawColor(playerid, speedom5[playerid], 16777215);
  487. PlayerTextDrawUseBox(playerid, speedom5[playerid], true);
  488. PlayerTextDrawBoxColor(playerid, speedom5[playerid], -4128513);
  489. PlayerTextDrawSetShadow(playerid, speedom5[playerid], 0);
  490. PlayerTextDrawSetOutline(playerid, speedom5[playerid], 0);
  491. PlayerTextDrawFont(playerid, speedom5[playerid], 0);
  492.  
  493. speedom6[playerid] = CreatePlayerTextDraw(playerid, 378.375000, 424.083465, "140");
  494. PlayerTextDrawLetterSize(playerid, speedom6[playerid], 0.000000, 1.111575);
  495. PlayerTextDrawTextSize(playerid, speedom6[playerid], 343.625000, 0.000000);
  496. PlayerTextDrawAlignment(playerid, speedom6[playerid], 1);
  497. PlayerTextDrawColor(playerid, speedom6[playerid], 16777215);
  498. PlayerTextDrawUseBox(playerid, speedom6[playerid], true);
  499. PlayerTextDrawBoxColor(playerid, speedom6[playerid], -6684417);
  500. PlayerTextDrawSetShadow(playerid, speedom6[playerid], 0);
  501. PlayerTextDrawSetOutline(playerid, speedom6[playerid], 0);
  502. PlayerTextDrawFont(playerid, speedom6[playerid], 0);
  503.  
  504. speedom7[playerid] = CreatePlayerTextDraw(playerid, 415.625000, 423.916809, "160");
  505. PlayerTextDrawLetterSize(playerid, speedom7[playerid], 0.000000, 1.111575);
  506. PlayerTextDrawTextSize(playerid, speedom7[playerid], 379.875000, 0.000000);
  507. PlayerTextDrawAlignment(playerid, speedom7[playerid], 1);
  508. PlayerTextDrawColor(playerid, speedom7[playerid], 16777215);
  509. PlayerTextDrawUseBox(playerid, speedom7[playerid], true);
  510. PlayerTextDrawBoxColor(playerid, speedom7[playerid], -9174785);
  511. PlayerTextDrawSetShadow(playerid, speedom7[playerid], 0);
  512. PlayerTextDrawSetOutline(playerid, speedom7[playerid], 0);
  513. PlayerTextDrawFont(playerid, speedom7[playerid], 0);
  514.  
  515. speedom8[playerid] = CreatePlayerTextDraw(playerid, 451.625000, 423.750061, "180");
  516. PlayerTextDrawLetterSize(playerid, speedom8[playerid], 0.000000, 1.111575);
  517. PlayerTextDrawTextSize(playerid, speedom8[playerid], 414.875000, 0.000000);
  518. PlayerTextDrawAlignment(playerid, speedom8[playerid], 1);
  519. PlayerTextDrawColor(playerid, speedom8[playerid], 16777215);
  520. PlayerTextDrawUseBox(playerid, speedom8[playerid], true);
  521. PlayerTextDrawBoxColor(playerid, speedom8[playerid], -11730689);
  522. PlayerTextDrawSetShadow(playerid, speedom8[playerid], 0);
  523. PlayerTextDrawSetOutline(playerid, speedom8[playerid], 0);
  524. PlayerTextDrawFont(playerid, speedom8[playerid], 0);
  525.  
  526. speedom9[playerid] = CreatePlayerTextDraw(playerid, 489.500000, 423.583343, "200");
  527. PlayerTextDrawLetterSize(playerid, speedom9[playerid], 0.000000, 1.111575);
  528. PlayerTextDrawTextSize(playerid, speedom9[playerid], 451.750000, 0.000000);
  529. PlayerTextDrawAlignment(playerid, speedom9[playerid], 1);
  530. PlayerTextDrawColor(playerid, speedom9[playerid], 16777215);
  531. PlayerTextDrawUseBox(playerid, speedom9[playerid], true);
  532. PlayerTextDrawBoxColor(playerid, speedom9[playerid], -16776961);
  533. PlayerTextDrawSetShadow(playerid, speedom9[playerid], 0);
  534. PlayerTextDrawSetOutline(playerid, speedom9[playerid], 0);
  535. PlayerTextDrawFont(playerid, speedom9[playerid], 0);
  536.  
  537. speedom10[playerid] = CreatePlayerTextDraw(playerid, 530.500000, 424.000030, "220");
  538. PlayerTextDrawLetterSize(playerid, speedom10[playerid], 0.000000, 1.111575);
  539. PlayerTextDrawTextSize(playerid, speedom10[playerid], 491.750000, 0.000000);
  540. PlayerTextDrawAlignment(playerid, speedom10[playerid], 1);
  541. PlayerTextDrawColor(playerid, speedom10[playerid], 16777215);
  542. PlayerTextDrawUseBox(playerid, speedom10[playerid], true);
  543. PlayerTextDrawBoxColor(playerid, speedom10[playerid], -2147483393);
  544. PlayerTextDrawSetShadow(playerid, speedom10[playerid], 0);
  545. PlayerTextDrawSetOutline(playerid, speedom10[playerid], 0);
  546. PlayerTextDrawFont(playerid, speedom10[playerid], 0);
  547.  
  548. speedom11[playerid] = CreatePlayerTextDraw(playerid, 570.250000, 423.833312, "240");
  549. PlayerTextDrawLetterSize(playerid, speedom11[playerid], 0.000000, 1.111575);
  550. PlayerTextDrawTextSize(playerid, speedom11[playerid], 532.375000, 0.000000);
  551. PlayerTextDrawAlignment(playerid, speedom11[playerid], 1);
  552. PlayerTextDrawColor(playerid, speedom11[playerid], 16777215);
  553. PlayerTextDrawUseBox(playerid, speedom11[playerid], true);
  554. PlayerTextDrawBoxColor(playerid, speedom11[playerid], 1073742079);
  555. PlayerTextDrawSetShadow(playerid, speedom11[playerid], 0);
  556. PlayerTextDrawSetOutline(playerid, speedom11[playerid], 0);
  557. PlayerTextDrawFont(playerid, speedom11[playerid], 0);
  558.  
  559. speedom12[playerid] = CreatePlayerTextDraw(playerid, 144.500000, 424.416748, "0");
  560. PlayerTextDrawLetterSize(playerid, speedom12[playerid], 0.000000, 1.303701);
  561. PlayerTextDrawTextSize(playerid, speedom12[playerid], 126.125000, 0.000000);
  562. PlayerTextDrawAlignment(playerid, speedom12[playerid], 1);
  563. PlayerTextDrawColor(playerid, speedom12[playerid], 0);
  564. PlayerTextDrawUseBox(playerid, speedom12[playerid], true);
  565. PlayerTextDrawBoxColor(playerid, speedom12[playerid], -1024440833);
  566. PlayerTextDrawSetShadow(playerid, speedom12[playerid], 0);
  567. PlayerTextDrawSetOutline(playerid, speedom12[playerid], 0);
  568. PlayerTextDrawFont(playerid, speedom12[playerid], 0);
  569.  
  570. speedom13[playerid] = CreatePlayerTextDraw(playerid, 178.375000, 424.083251, "20");
  571. PlayerTextDrawLetterSize(playerid, speedom13[playerid], 0.000000, 1.111575);
  572. PlayerTextDrawTextSize(playerid, speedom13[playerid], 147.375000, 0.000000);
  573. PlayerTextDrawAlignment(playerid, speedom13[playerid], 1);
  574. PlayerTextDrawColor(playerid, speedom13[playerid], 0);
  575. PlayerTextDrawUseBox(playerid, speedom13[playerid], true);
  576. PlayerTextDrawBoxColor(playerid, speedom13[playerid], -1578088961);
  577. PlayerTextDrawSetShadow(playerid, speedom13[playerid], 0);
  578. PlayerTextDrawSetOutline(playerid, speedom13[playerid], 0);
  579. PlayerTextDrawFont(playerid, speedom13[playerid], 0);
  580.  
  581. speedom14[playerid] = CreatePlayerTextDraw(playerid, 209.250000, 424.249969, "40");
  582. PlayerTextDrawLetterSize(playerid, speedom14[playerid], 0.000000, 1.111575);
  583. PlayerTextDrawTextSize(playerid, speedom14[playerid], 179.250000, 0.000000);
  584. PlayerTextDrawAlignment(playerid, speedom14[playerid], 1);
  585. PlayerTextDrawColor(playerid, speedom14[playerid], 0);
  586. PlayerTextDrawUseBox(playerid, speedom14[playerid], true);
  587. PlayerTextDrawBoxColor(playerid, speedom14[playerid], -1749403905);
  588. PlayerTextDrawSetShadow(playerid, speedom14[playerid], 0);
  589. PlayerTextDrawSetOutline(playerid, speedom14[playerid], 0);
  590. PlayerTextDrawFont(playerid, speedom14[playerid], 0);
  591.  
  592. speedom15[playerid] = CreatePlayerTextDraw(playerid, 240.000000, 423.916564, "60");
  593. PlayerTextDrawLetterSize(playerid, speedom15[playerid], 0.000000, 1.111575);
  594. PlayerTextDrawTextSize(playerid, speedom15[playerid], 208.000000, 0.000000);
  595. PlayerTextDrawAlignment(playerid, speedom15[playerid], 1);
  596. PlayerTextDrawColor(playerid, speedom15[playerid], 0);
  597. PlayerTextDrawUseBox(playerid, speedom15[playerid], true);
  598. PlayerTextDrawBoxColor(playerid, speedom15[playerid], 1721382399);
  599. PlayerTextDrawSetShadow(playerid, speedom15[playerid], 0);
  600. PlayerTextDrawSetOutline(playerid, speedom15[playerid], 0);
  601. PlayerTextDrawFont(playerid, speedom15[playerid], 0);
  602.  
  603. speedom16[playerid] = CreatePlayerTextDraw(playerid, 271.000000, 423.166595, "80");
  604. PlayerTextDrawLetterSize(playerid, speedom16[playerid], 0.000000, 1.174075);
  605. PlayerTextDrawTextSize(playerid, speedom16[playerid], 238.625000, 0.000000);
  606. PlayerTextDrawAlignment(playerid, speedom16[playerid], 1);
  607. PlayerTextDrawColor(playerid, speedom16[playerid], 0);
  608. PlayerTextDrawUseBox(playerid, speedom16[playerid], true);
  609. PlayerTextDrawBoxColor(playerid, speedom16[playerid], 1046225151);
  610. PlayerTextDrawSetShadow(playerid, speedom16[playerid], 0);
  611. PlayerTextDrawSetOutline(playerid, speedom16[playerid], 0);
  612. PlayerTextDrawFont(playerid, speedom16[playerid], 0);
  613.  
  614. speedom3[playerid] = CreatePlayerTextDraw(playerid, 131.250000, 421.750091, "0 i 20 i 40 i 60 i 80 i 100 i 120 i 140 i 160 i 180 i 200 i 220 i 240");
  615. PlayerTextDrawLetterSize(playerid, speedom3[playerid], 0.342500, 1.605834);
  616. PlayerTextDrawAlignment(playerid, speedom3[playerid], 1);
  617. PlayerTextDrawColor(playerid, speedom3[playerid], -2139062017);
  618. PlayerTextDrawSetShadow(playerid, speedom3[playerid], 1);
  619. PlayerTextDrawSetOutline(playerid, speedom3[playerid], 0);
  620. PlayerTextDrawBackgroundColor(playerid, speedom3[playerid], 255);
  621. PlayerTextDrawFont(playerid, speedom3[playerid], 2);
  622. PlayerTextDrawSetProportional(playerid, speedom3[playerid], 1);
  623.  
  624. speedom20[playerid] = CreatePlayerTextDraw(playerid, 329.375000, 404.250000, "Land Stalker");
  625. PlayerTextDrawLetterSize(playerid, speedom20[playerid], 0.327499, 1.290832);
  626. PlayerTextDrawTextSize(playerid, speedom20[playerid], 26.250000, 131.833328);
  627. PlayerTextDrawAlignment(playerid, speedom20[playerid], 2);
  628. PlayerTextDrawColor(playerid, speedom20[playerid], -65281);
  629. PlayerTextDrawUseBox(playerid, speedom20[playerid], true);
  630. PlayerTextDrawBoxColor(playerid, speedom20[playerid], 119);
  631. PlayerTextDrawSetShadow(playerid, speedom20[playerid], 1);
  632. PlayerTextDrawSetOutline(playerid, speedom20[playerid], 0);
  633. PlayerTextDrawBackgroundColor(playerid, speedom20[playerid], -2147483393);
  634. PlayerTextDrawFont(playerid, speedom20[playerid], 2);
  635. PlayerTextDrawSetProportional(playerid, speedom20[playerid], 1);
  636.  
  637. speedom21[playerid] = CreatePlayerTextDraw(playerid, 367.500000, 373.333435, "LD_SPAC:white");
  638. PlayerTextDrawLetterSize(playerid, speedom21[playerid], 0.000000, 0.000000);
  639. PlayerTextDrawTextSize(playerid, speedom21[playerid], 50.625000, 49.583312);
  640. PlayerTextDrawAlignment(playerid, speedom21[playerid], 1);
  641. PlayerTextDrawColor(playerid, speedom21[playerid], -1);
  642. PlayerTextDrawUseBox(playerid, speedom21[playerid], true);
  643. PlayerTextDrawBoxColor(playerid, speedom21[playerid], 0);
  644. PlayerTextDrawSetShadow(playerid, speedom21[playerid], 0);
  645. PlayerTextDrawSetOutline(playerid, speedom21[playerid], 0);
  646. PlayerTextDrawFont(playerid, speedom21[playerid], 5);
  647. PlayerTextDrawBackgroundColor(playerid, speedom21[playerid], 0xFFFFFF00);
  648. PlayerTextDrawSetPreviewModel(playerid, speedom21[playerid], 411);
  649. PlayerTextDrawSetPreviewRot(playerid, speedom21[playerid], -10.000000, 0.000000, -20.000000, 1.000000);
  650.  
  651. speedom22[playerid] = CreatePlayerTextDraw(playerid, 128.125000, 436.916656, "Health: ~b~1200.0");
  652. PlayerTextDrawLetterSize(playerid, speedom22[playerid], 0.274372, 0.946663);
  653. PlayerTextDrawAlignment(playerid, speedom22[playerid], 1);
  654. PlayerTextDrawColor(playerid, speedom22[playerid], -16776961);
  655. PlayerTextDrawSetShadow(playerid, speedom22[playerid], 1);
  656. PlayerTextDrawSetOutline(playerid, speedom22[playerid], 0);
  657. PlayerTextDrawBackgroundColor(playerid, speedom22[playerid], 255);
  658. PlayerTextDrawFont(playerid, speedom22[playerid], 2);
  659. PlayerTextDrawSetProportional(playerid, speedom22[playerid], 1);
  660.  
  661. //speedomter2
  662. Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 263.125000, 407.166870, "speed: 120 km/h~n~health: 1000.0~n~model: infernus~g~(411)");
  663. PlayerTextDrawLetterSize(playerid,Textdraw3[playerid], 0.186249, 1.279166);
  664. PlayerTextDrawAlignment(playerid,Textdraw3[playerid], 1);
  665. PlayerTextDrawColor(playerid,Textdraw3[playerid], 16777215);
  666. PlayerTextDrawSetShadow(playerid,Textdraw3[playerid], 0);
  667. PlayerTextDrawSetOutline(playerid,Textdraw3[playerid], 1);
  668. PlayerTextDrawBackgroundColor(playerid,Textdraw3[playerid], 255);
  669. PlayerTextDrawFont(playerid,Textdraw3[playerid], 2);
  670. PlayerTextDrawSetProportional(playerid,Textdraw3[playerid], 1);
  671.  
  672. Textdraw6[playerid] = CreatePlayerTextDraw(playerid,373.875000, 412.166564, "usebox");
  673. PlayerTextDrawLetterSize(playerid,Textdraw6[playerid], 0.000000, 1.472680);
  674. PlayerTextDrawTextSize(playerid,Textdraw6[playerid], 364.875000, 0.000000);
  675. PlayerTextDrawAlignment(playerid,Textdraw6[playerid], 1);
  676. PlayerTextDrawColor(playerid,Textdraw6[playerid], 0);
  677. PlayerTextDrawUseBox(playerid,Textdraw6[playerid], true);
  678. PlayerTextDrawBoxColor(playerid,Textdraw6[playerid], 1073742079);
  679. PlayerTextDrawSetShadow(playerid,Textdraw6[playerid], 0);
  680. PlayerTextDrawSetOutline(playerid,Textdraw6[playerid], 0);
  681. PlayerTextDrawFont(playerid,Textdraw6[playerid], 0);
  682.  
  683. Textdraw7[playerid] = CreatePlayerTextDraw(playerid,368.000000, 416.083343, "usebox");
  684. PlayerTextDrawLetterSize(playerid,Textdraw7[playerid], 0.000000, 1.035180);
  685. PlayerTextDrawTextSize(playerid,Textdraw7[playerid], 358.625000, 0.000000);
  686. PlayerTextDrawAlignment(playerid,Textdraw7[playerid], 1);
  687. PlayerTextDrawColor(playerid,Textdraw7[playerid], 0);
  688. PlayerTextDrawUseBox(playerid,Textdraw7[playerid], true);
  689. PlayerTextDrawBoxColor(playerid,Textdraw7[playerid], -2147483393);
  690. PlayerTextDrawSetShadow(playerid,Textdraw7[playerid], 0);
  691. PlayerTextDrawSetOutline(playerid,Textdraw7[playerid], 0);
  692. PlayerTextDrawFont(playerid,Textdraw7[playerid], 0);
  693.  
  694. Textdraw8[playerid] = CreatePlayerTextDraw(playerid,361.500000, 418.833374, "usebox");
  695. PlayerTextDrawLetterSize(playerid,Textdraw8[playerid], 0.000000, 0.722680);
  696. PlayerTextDrawTextSize(playerid,Textdraw8[playerid], 352.375000, 0.000000);
  697. PlayerTextDrawAlignment(playerid,Textdraw8[playerid], 1);
  698. PlayerTextDrawColor(playerid,Textdraw8[playerid], 0);
  699. PlayerTextDrawUseBox(playerid,Textdraw8[playerid], true);
  700. PlayerTextDrawBoxColor(playerid,Textdraw8[playerid], -16776961);
  701. PlayerTextDrawSetShadow(playerid,Textdraw8[playerid], 0);
  702. PlayerTextDrawSetOutline(playerid,Textdraw8[playerid], 0);
  703. PlayerTextDrawFont(playerid,Textdraw8[playerid], 0);
  704.  
  705. Textdraw9[playerid] = CreatePlayerTextDraw(playerid,355.625000, 421.583312, "usebox");
  706. PlayerTextDrawLetterSize(playerid,Textdraw9[playerid], 0.000000, 0.472680);
  707. PlayerTextDrawTextSize(playerid,Textdraw9[playerid], 346.125000, 0.000000);
  708. PlayerTextDrawAlignment(playerid,Textdraw9[playerid], 1);
  709. PlayerTextDrawColor(playerid,Textdraw9[playerid], 0);
  710. PlayerTextDrawUseBox(playerid,Textdraw9[playerid], true);
  711. PlayerTextDrawBoxColor(playerid,Textdraw9[playerid], -16776961);
  712. PlayerTextDrawSetShadow(playerid,Textdraw9[playerid], 0);
  713. PlayerTextDrawSetOutline(playerid,Textdraw9[playerid], 0);
  714. PlayerTextDrawFont(playerid,Textdraw9[playerid], 0);
  715.  
  716. Textdraw10[playerid] = CreatePlayerTextDraw(playerid,349.750000, 424.333343, "usebox");
  717. PlayerTextDrawLetterSize(playerid,Textdraw10[playerid], 0.000000, 0.160180);
  718. PlayerTextDrawTextSize(playerid,Textdraw10[playerid], 340.500000, 0.000000);
  719. PlayerTextDrawAlignment(playerid,Textdraw10[playerid], 1);
  720. PlayerTextDrawColor(playerid,Textdraw10[playerid], 0);
  721. PlayerTextDrawUseBox(playerid,Textdraw10[playerid], true);
  722. PlayerTextDrawBoxColor(playerid,Textdraw10[playerid], -802083329);
  723. PlayerTextDrawSetShadow(playerid,Textdraw10[playerid], 0);
  724. PlayerTextDrawSetOutline(playerid,Textdraw10[playerid], 0);
  725. PlayerTextDrawFont(playerid,Textdraw10[playerid], 0);
  726.  
  727. Textdraw11[playerid] = CreatePlayerTextDraw(playerid,313.750000, 372.166595, "LD_SPAC:white");
  728. PlayerTextDrawLetterSize(playerid,Textdraw11[playerid], 0.000000, 0.000000);
  729. PlayerTextDrawTextSize(playerid,Textdraw11[playerid], 90.000000, 49.583374);
  730. PlayerTextDrawAlignment(playerid,Textdraw11[playerid], 1);
  731. PlayerTextDrawColor(playerid,Textdraw11[playerid], -1);
  732. PlayerTextDrawUseBox(playerid,Textdraw11[playerid], true);
  733. PlayerTextDrawBoxColor(playerid,Textdraw11[playerid], 0);
  734. PlayerTextDrawSetShadow(playerid,Textdraw11[playerid], 0);
  735. PlayerTextDrawSetOutline(playerid,Textdraw11[playerid], 0);
  736. PlayerTextDrawFont(playerid,Textdraw11[playerid], 5);
  737. PlayerTextDrawSetPreviewModel(playerid,Textdraw11[playerid], 0);
  738. PlayerTextDrawBackgroundColor(playerid,Textdraw11[playerid], 0xFFFFFF00);
  739. PlayerTextDrawSetPreviewRot(playerid,Textdraw11[playerid], -5.000000, 0.000000, -20.000000, 1.000000);
  740.  
  741. Textdraw12[playerid] = CreatePlayerTextDraw(playerid,295.625000, 390.833312, "Infernus");
  742. PlayerTextDrawLetterSize(playerid,Textdraw12[playerid], 0.223124, 1.664167);
  743. PlayerTextDrawAlignment(playerid,Textdraw12[playerid], 2);
  744. PlayerTextDrawColor(playerid,Textdraw12[playerid], -5963521);
  745. PlayerTextDrawUseBox(playerid,Textdraw12[playerid], true);
  746. PlayerTextDrawBoxColor(playerid,Textdraw12[playerid], 0);
  747. PlayerTextDrawSetShadow(playerid,Textdraw12[playerid], 1);
  748. PlayerTextDrawSetOutline(playerid,Textdraw12[playerid], 0);
  749. PlayerTextDrawBackgroundColor(playerid,Textdraw12[playerid], -16776961);
  750. PlayerTextDrawFont(playerid,Textdraw12[playerid], 2);
  751. PlayerTextDrawSetProportional(playerid,Textdraw12[playerid], 1);
  752.  
  753. //speedomter3
  754. speedm2[playerid] = CreatePlayerTextDraw(playerid,270.000000, 408.916717, "120");
  755. PlayerTextDrawLetterSize(playerid, speedm2[playerid], 0.408749, 2.498333);
  756. PlayerTextDrawAlignment(playerid, speedm2[playerid], 2);
  757. PlayerTextDrawColor(playerid, speedm2[playerid], -5963521);
  758. PlayerTextDrawSetShadow(playerid, speedm2[playerid], 1);
  759. PlayerTextDrawSetOutline(playerid, speedm2[playerid], 0);
  760. PlayerTextDrawBackgroundColor(playerid, speedm2[playerid], -16776961);
  761. PlayerTextDrawFont(playerid, speedm2[playerid], 2);
  762. PlayerTextDrawSetProportional(playerid, speedm2[playerid], 1);
  763.  
  764. speedm4[playerid] = CreatePlayerTextDraw(playerid,353.750000, 380.333343, "LD_SPAC:white");
  765. PlayerTextDrawLetterSize(playerid, speedm4[playerid], 0.000000, 0.000000);
  766. PlayerTextDrawTextSize(playerid, speedm4[playerid], 87.500000, 45.500000);
  767. PlayerTextDrawAlignment(playerid, speedm4[playerid], 1);
  768. PlayerTextDrawColor(playerid, speedm4[playerid], -1);
  769. PlayerTextDrawUseBox(playerid, speedm4[playerid], true);
  770. PlayerTextDrawBoxColor(playerid, speedm4[playerid], 0);
  771. PlayerTextDrawSetShadow(playerid, speedm4[playerid], 0);
  772. PlayerTextDrawSetOutline(playerid, speedm4[playerid], 0);
  773. PlayerTextDrawFont(playerid, speedm4[playerid], 5);
  774. PlayerTextDrawBackgroundColor(playerid, speedm4[playerid], 0xFFFFFF00);
  775. PlayerTextDrawSetPreviewModel(playerid, speedm4[playerid], 411);
  776. PlayerTextDrawSetPreviewRot(playerid, speedm4[playerid], -10.000000, 0.000000, -20.000000, 1.000000);
  777.  
  778. speedm5[playerid] = CreatePlayerTextDraw(playerid,296.250000, 410.666717, "Vehicle: ~p~Land Stalker~n~~g~Health: ~g~~h~1200.0");
  779. PlayerTextDrawLetterSize(playerid, speedm5[playerid], 0.246874, 1.150833);
  780. PlayerTextDrawAlignment(playerid, speedm5[playerid], 1);
  781. PlayerTextDrawColor(playerid, speedm5[playerid], 16711935);
  782. PlayerTextDrawSetShadow(playerid, speedm5[playerid], 0);
  783. PlayerTextDrawSetOutline(playerid, speedm5[playerid], 1);
  784. PlayerTextDrawBackgroundColor(playerid, speedm5[playerid], 51);
  785. PlayerTextDrawFont(playerid, speedm5[playerid], 1);
  786. PlayerTextDrawSetProportional(playerid, speedm5[playerid], 1);
  787.  
  788. speedm7[playerid] = CreatePlayerTextDraw(playerid,396.250000, 419.416625, "i");
  789. PlayerTextDrawLetterSize(playerid, speedm7[playerid], 1.004375, 2.521668);
  790. PlayerTextDrawAlignment(playerid, speedm7[playerid], 1);
  791. PlayerTextDrawColor(playerid, speedm7[playerid], 1073742079);
  792. PlayerTextDrawSetShadow(playerid, speedm7[playerid], 0);
  793. PlayerTextDrawSetOutline(playerid, speedm7[playerid], 1);
  794. PlayerTextDrawBackgroundColor(playerid, speedm7[playerid], 51);
  795. PlayerTextDrawFont(playerid, speedm7[playerid], 2);
  796. PlayerTextDrawSetProportional(playerid, speedm7[playerid], 1);
  797.  
  798. speedm8[playerid] = CreatePlayerTextDraw(playerid,390.375000, 423.333251, "i");
  799. PlayerTextDrawLetterSize(playerid, speedm8[playerid], 1.015000, 1.961668);
  800. PlayerTextDrawAlignment(playerid, speedm8[playerid], 1);
  801. PlayerTextDrawColor(playerid, speedm8[playerid], -2147483393);
  802. PlayerTextDrawSetShadow(playerid, speedm8[playerid], 0);
  803. PlayerTextDrawSetOutline(playerid, speedm8[playerid], 1);
  804. PlayerTextDrawBackgroundColor(playerid, speedm8[playerid], 51);
  805. PlayerTextDrawFont(playerid, speedm8[playerid], 2);
  806. PlayerTextDrawSetProportional(playerid, speedm8[playerid], 1);
  807.  
  808. speedm9[playerid] = CreatePlayerTextDraw(playerid,384.500000, 428.416656, "i");
  809. PlayerTextDrawLetterSize(playerid, speedm9[playerid], 1.013125, 1.314168);
  810. PlayerTextDrawAlignment(playerid, speedm9[playerid], 1);
  811. PlayerTextDrawColor(playerid, speedm9[playerid], -1090518785);
  812. PlayerTextDrawSetShadow(playerid, speedm9[playerid], 0);
  813. PlayerTextDrawSetOutline(playerid, speedm9[playerid], 1);
  814. PlayerTextDrawBackgroundColor(playerid, speedm9[playerid], 51);
  815. PlayerTextDrawFont(playerid, speedm9[playerid], 2);
  816. PlayerTextDrawSetProportional(playerid, speedm9[playerid], 1);
  817.  
  818. speedm10[playerid] = CreatePlayerTextDraw(playerid,378.625000, 432.333312, "i");
  819. PlayerTextDrawLetterSize(playerid, speedm10[playerid], 1.012500, 0.806667);
  820. PlayerTextDrawAlignment(playerid, speedm10[playerid], 1);
  821. PlayerTextDrawColor(playerid, speedm10[playerid], -16776961);
  822. PlayerTextDrawSetShadow(playerid, speedm10[playerid], 0);
  823. PlayerTextDrawSetOutline(playerid, speedm10[playerid], 1);
  824. PlayerTextDrawBackgroundColor(playerid, speedm10[playerid], 51);
  825. PlayerTextDrawFont(playerid, speedm10[playerid], 2);
  826. PlayerTextDrawSetProportional(playerid, speedm10[playerid], 1);
  827.  
  828. return 1;
  829. }
  830.  
  831. public OnPlayerDisconnect(playerid, reason)
  832. {
  833. return 1;
  834. }
  835.  
  836. public OnPlayerSpawn(playerid)
  837. {
  838. return 1;
  839. }
  840.  
  841. public OnPlayerDeath(playerid, killerid, reason)
  842. {
  843. return 1;
  844. }
  845.  
  846. public OnVehicleSpawn(vehicleid)
  847. {
  848. return 1;
  849. }
  850.  
  851. public OnVehicleDeath(vehicleid, killerid)
  852. {
  853. KillTimer(speed0[killerid]);
  854. TextDrawHideForPlayer(killerid, Textdraw0);
  855. TextDrawHideForPlayer(killerid, Textdraw1);
  856. TextDrawHideForPlayer(killerid, Textdraw2);
  857. PlayerTextDrawHide(killerid, Textdraw3[killerid]);
  858. TextDrawHideForPlayer(killerid, Textdraw4);
  859. TextDrawHideForPlayer(killerid, Textdraw5);
  860. PlayerTextDrawHide(killerid, Textdraw6[killerid]);
  861. PlayerTextDrawHide(killerid, Textdraw7[killerid]);
  862. PlayerTextDrawHide(killerid, Textdraw8[killerid]);
  863. PlayerTextDrawHide(killerid, Textdraw9[killerid]);
  864. PlayerTextDrawHide(killerid, Textdraw10[killerid]);
  865. PlayerTextDrawHide(killerid, Textdraw11[killerid]);
  866. PlayerTextDrawHide(killerid, Textdraw12[killerid]);
  867.  
  868.  
  869. TextDrawHideForPlayer(killerid, speedom0);
  870. TextDrawHideForPlayer(killerid, speedom1);
  871. TextDrawHideForPlayer(killerid, speedom2);
  872. PlayerTextDrawHide(killerid, speedom3[killerid]);
  873. PlayerTextDrawHide(killerid, speedom4[killerid]);
  874. PlayerTextDrawHide(killerid, speedom5[killerid]);
  875. PlayerTextDrawHide(killerid, speedom6[killerid]);
  876. PlayerTextDrawHide(killerid, speedom7[killerid]);
  877. PlayerTextDrawHide(killerid, speedom8[killerid]);
  878. PlayerTextDrawHide(killerid, speedom9[killerid]);
  879. PlayerTextDrawHide(killerid, speedom10[killerid]);
  880. PlayerTextDrawHide(killerid, speedom11[killerid]);
  881. PlayerTextDrawHide(killerid, speedom12[killerid]);
  882. PlayerTextDrawHide(killerid, speedom13[killerid]);
  883. PlayerTextDrawHide(killerid, speedom14[killerid]);
  884. PlayerTextDrawHide(killerid, speedom15[killerid]);
  885. PlayerTextDrawHide(killerid, speedom16[killerid]);
  886. TextDrawHideForPlayer(killerid, speedom17);
  887. TextDrawHideForPlayer(killerid, speedom18);
  888. TextDrawHideForPlayer(killerid, speedom19);
  889. PlayerTextDrawHide(killerid, speedom20[killerid]);
  890. PlayerTextDrawHide(killerid, speedom21[killerid]);
  891. PlayerTextDrawHide(killerid, speedom22[killerid]);
  892. TextDrawHideForPlayer(killerid, speedom23);
  893.  
  894.  
  895. TextDrawHideForPlayer(killerid, speedm0);
  896. TextDrawHideForPlayer(killerid, speedm1);
  897. PlayerTextDrawHide(killerid, speedm2[killerid]);
  898. TextDrawHideForPlayer(killerid, speedm3);
  899. PlayerTextDrawHide(killerid, speedm4[killerid]);
  900. PlayerTextDrawHide(killerid, speedm5[killerid]);
  901. TextDrawHideForPlayer(killerid, speedm6);
  902. PlayerTextDrawHide(killerid, speedm7[killerid]);
  903. PlayerTextDrawHide(killerid, speedm8[killerid]);
  904. PlayerTextDrawHide(killerid, speedm9[killerid]);
  905. PlayerTextDrawHide(killerid, speedm10[killerid]);
  906.  
  907. return 1;
  908. }
  909.  
  910. public OnPlayerText(playerid, text[])
  911. {
  912. return 1;
  913. }
  914.  
  915. public OnPlayerCommandText(playerid, cmdtext[])
  916. {
  917. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  918. {
  919. CarSpawner(playerid,411);
  920.  
  921. return 1;
  922. }
  923.  
  924. if (strcmp("/meterchange", cmdtext, true, 10) == 0)
  925. {
  926. if(IsPlayerAdmin(playerid)){
  927. if(Speedometer == 3){
  928. SendClientMessage(playerid, 0x33AA33AA, "Speed-O-Meter[1] has been Activated!");
  929. SetTimer("meter1activate", 500, 0);
  930. }
  931. else if(Speedometer == 2){
  932. SendClientMessage(playerid, 0x33AA33AA, "Speed-O-Meter[3] has been Activated!");
  933. SetTimer("meter3activate", 500, 0);
  934. }
  935. else if(Speedometer == 1){
  936. SendClientMessage(playerid, 0x33AA33AA, "Speed-O-Meter[2] has been Activated!");
  937. Speedometer = 2;
  938. }
  939. }
  940. // Do something here
  941. return 1;
  942. }
  943. return 0;
  944. }
  945.  
  946. forward meter1activate(playerid);
  947. public meter1activate(playerid)
  948. {
  949. Speedometer = 1;
  950. return 1;
  951. }
  952. forward meter3activate(playerid);
  953. public meter3activate(playerid)
  954. {
  955. Speedometer = 3;
  956. return 1;
  957. }
  958.  
  959. forward CarSpawner(playerid,model);
  960. public CarSpawner(playerid,model)
  961. {
  962. if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, 0x33AA33AA, "You already have a car!");
  963. else
  964. {
  965. new Float:x, Float:y, Float:z, Float:angle;
  966. GetPlayerPos(playerid, x, y, z);
  967. GetPlayerFacingAngle(playerid, angle);
  968. //if(PlayerInfo[playerid][pCar] != -1) CarDeleter(PlayerInfo[playerid][pCar]);
  969. new vehicleid=CreateVehicle(model, x, y, z, angle, -1, -1, -1);
  970. SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
  971. LinkVehicleToInterior(vehicleid, GetPlayerInterior(playerid));
  972. PutPlayerInVehicle(playerid, vehicleid, 0);
  973. ChangeVehicleColor(vehicleid,0,7);
  974. //PlayerInfo[playerid][pCar] = vehicleid;
  975. }
  976. return 1;
  977. }
  978.  
  979. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  980. {
  981. return 1;
  982. }
  983.  
  984. public OnPlayerExitVehicle(playerid, vehicleid)
  985. {
  986. KillTimer(speed0[playerid]);
  987. TextDrawHideForPlayer(playerid, Textdraw0);
  988. TextDrawHideForPlayer(playerid, Textdraw1);
  989. TextDrawHideForPlayer(playerid, Textdraw2);
  990. PlayerTextDrawHide(playerid, Textdraw3[playerid]);
  991. TextDrawHideForPlayer(playerid, Textdraw4);
  992. TextDrawHideForPlayer(playerid, Textdraw5);
  993. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  994. PlayerTextDrawHide(playerid, Textdraw7[playerid]);
  995. PlayerTextDrawHide(playerid, Textdraw8[playerid]);
  996. PlayerTextDrawHide(playerid, Textdraw9[playerid]);
  997. PlayerTextDrawHide(playerid, Textdraw10[playerid]);
  998. PlayerTextDrawHide(playerid, Textdraw11[playerid]);
  999. PlayerTextDrawHide(playerid, Textdraw12[playerid]);
  1000.  
  1001. TextDrawHideForPlayer(playerid, speedom0);
  1002. TextDrawHideForPlayer(playerid, speedom1);
  1003. TextDrawHideForPlayer(playerid, speedom2);
  1004. PlayerTextDrawHide(playerid, speedom3[playerid]);
  1005. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1006. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1007. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1008. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1009. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1010. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1011. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1012. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1013. PlayerTextDrawHide(playerid, speedom12[playerid]);
  1014. PlayerTextDrawHide(playerid, speedom13[playerid]);
  1015. PlayerTextDrawHide(playerid, speedom14[playerid]);
  1016. PlayerTextDrawHide(playerid, speedom15[playerid]);
  1017. PlayerTextDrawHide(playerid, speedom16[playerid]);
  1018. TextDrawHideForPlayer(playerid, speedom17);
  1019. TextDrawHideForPlayer(playerid, speedom18);
  1020. TextDrawHideForPlayer(playerid, speedom19);
  1021. PlayerTextDrawHide(playerid, speedom20[playerid]);
  1022. PlayerTextDrawHide(playerid, speedom21[playerid]);
  1023. PlayerTextDrawHide(playerid, speedom22[playerid]);
  1024. TextDrawHideForPlayer(playerid, speedom23);
  1025.  
  1026.  
  1027. TextDrawHideForPlayer(playerid, speedm0);
  1028. TextDrawHideForPlayer(playerid, speedm1);
  1029. PlayerTextDrawHide(playerid, speedm2[playerid]);
  1030. TextDrawHideForPlayer(playerid, speedm3);
  1031. PlayerTextDrawHide(playerid, speedm4[playerid]);
  1032. PlayerTextDrawHide(playerid, speedm5[playerid]);
  1033. TextDrawHideForPlayer(playerid, speedm6);
  1034. PlayerTextDrawHide(playerid, speedm7[playerid]);
  1035. PlayerTextDrawHide(playerid, speedm8[playerid]);
  1036. PlayerTextDrawHide(playerid, speedm9[playerid]);
  1037. PlayerTextDrawHide(playerid, speedm10[playerid]);
  1038.  
  1039. return 1;
  1040. }
  1041.  
  1042. public OnPlayerStateChange(playerid, newstate, oldstate)
  1043. {
  1044.  
  1045. new getstate = GetPlayerState(playerid);
  1046. if(getstate == PLAYER_STATE_DRIVER || getstate == PLAYER_STATE_PASSENGER)
  1047. {
  1048. new vehicleid;
  1049. vehicleid = GetPlayerVehicleID(playerid);
  1050.  
  1051. if(Speedometer == 1){
  1052. speed0[playerid] = SetTimerEx("speedom", 1000, true, "i", playerid);
  1053. PlayerTextDrawSetPreviewModel(playerid ,Textdraw11[playerid], GetVehicleModel(vehicleid));
  1054. PlayerTextDrawShow(playerid, Textdraw11[playerid]);
  1055. }
  1056. else if(Speedometer == 2){
  1057. speed0[playerid] = SetTimerEx("speedomm", 1000, true, "i", playerid);
  1058. PlayerTextDrawSetPreviewModel(playerid, speedom21[playerid], GetVehicleModel(vehicleid));
  1059. PlayerTextDrawShow(playerid, speedom21[playerid]);
  1060. }
  1061. else if(Speedometer == 3){
  1062. speed0[playerid] = SetTimerEx("speedommm", 1000, true, "i", playerid);
  1063. PlayerTextDrawSetPreviewModel(playerid, speedm4[playerid], GetVehicleModel(vehicleid));
  1064. PlayerTextDrawShow(playerid, speedm4[playerid]);
  1065. }
  1066. }
  1067. return 1;
  1068. }
  1069.  
  1070.  
  1071. forward speedom(playerid);
  1072. public speedom(playerid)
  1073. {
  1074. Speedometer1(playerid);
  1075. return 1;
  1076. }
  1077.  
  1078. forward speedomm(playerid);
  1079. public speedomm(playerid)
  1080. {
  1081. Speedometer2(playerid);
  1082. return 1;
  1083. }
  1084.  
  1085. forward speedommm(playerid);
  1086. public speedommm(playerid)
  1087. {
  1088. Speedometer3(playerid);
  1089. return 1;
  1090. }
  1091.  
  1092. forward Speedometer1(playerid);
  1093. public Speedometer1(playerid)
  1094. {
  1095. new vehicleid;
  1096. vehicleid = GetPlayerVehicleID(playerid);
  1097. new Float:vehicle_health,final_vehicle_health,string[257];
  1098. if(vehicleid != 0)
  1099. {
  1100. TextDrawShowForPlayer(playerid, Textdraw0);
  1101. TextDrawShowForPlayer(playerid, Textdraw1);
  1102. TextDrawShowForPlayer(playerid, Textdraw2);
  1103. PlayerTextDrawShow(playerid, Textdraw3[playerid]);
  1104. TextDrawShowForPlayer(playerid, Textdraw4);
  1105. TextDrawShowForPlayer(playerid, Textdraw5);
  1106. PlayerTextDrawShow(playerid, Textdraw12[playerid]);
  1107.  
  1108. new Float:VelX, Float:VelY, Float:VelZ;
  1109. GetVehicleVelocity(vehicleid, VelX, VelY, VelZ);
  1110. new Float:Speed;
  1111. Speed = (floatsqroot(((VelX*VelX)+(VelY*VelY))+(VelZ*VelZ))* 181.5);
  1112. GetVehicleHealth(vehicleid,vehicle_health);
  1113. final_vehicle_health = floatround(floatround(vehicle_health)); //This will make the health show at 100 when the vehicle is not damaged and at 0 when it is in fire.
  1114. format(string,257,"~b~SPEED: ~y~%i.0 KM/H~n~~g~HEALTH: ~y~%i.0~n~~p~MODEL: ~y~%s(%d)",floatround(Speed, floatround_floor), final_vehicle_health, VehicleName2[GetVehicleModel(vehicleid)-400],GetVehicleModel(vehicleid));
  1115. PlayerTextDrawSetString(playerid ,Textdraw3[playerid], string);
  1116. format(string,257,"%s",VehicleName2[GetVehicleModel(vehicleid)-400]);
  1117. PlayerTextDrawSetString(playerid, Textdraw12[playerid], string);
  1118.  
  1119.  
  1120. if(floatround(Speed, floatround_floor) < 10){
  1121. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  1122. PlayerTextDrawHide(playerid, Textdraw7[playerid]);
  1123. PlayerTextDrawHide(playerid, Textdraw8[playerid]);
  1124. PlayerTextDrawHide(playerid, Textdraw9[playerid]);
  1125. PlayerTextDrawHide(playerid, Textdraw10[playerid]);
  1126. }
  1127.  
  1128. else if(floatround(Speed, floatround_floor) > 10 && floatround(Speed, floatround_floor) < 50){
  1129. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  1130. PlayerTextDrawHide(playerid, Textdraw7[playerid]);
  1131. PlayerTextDrawHide(playerid, Textdraw8[playerid]);
  1132. PlayerTextDrawHide(playerid, Textdraw9[playerid]);
  1133. PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  1134. }
  1135.  
  1136. else if(floatround(Speed, floatround_floor) > 50 && floatround(Speed, floatround_floor) < 100){
  1137. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  1138. PlayerTextDrawHide(playerid, Textdraw7[playerid]);
  1139. PlayerTextDrawHide(playerid, Textdraw8[playerid]);
  1140. PlayerTextDrawShow(playerid, Textdraw9[playerid]);
  1141. PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  1142. }
  1143.  
  1144. else if(floatround(Speed, floatround_floor) > 100 && floatround(Speed, floatround_floor) < 150){
  1145. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  1146. PlayerTextDrawHide(playerid, Textdraw7[playerid]);
  1147. PlayerTextDrawShow(playerid, Textdraw8[playerid]);
  1148. PlayerTextDrawShow(playerid, Textdraw9[playerid]);
  1149. PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  1150. }
  1151.  
  1152. else if(floatround(Speed, floatround_floor) > 150 && floatround(Speed, floatround_floor) < 200){
  1153. PlayerTextDrawHide(playerid, Textdraw6[playerid]);
  1154. PlayerTextDrawShow(playerid, Textdraw7[playerid]);
  1155. PlayerTextDrawShow(playerid, Textdraw8[playerid]);
  1156. PlayerTextDrawShow(playerid, Textdraw9[playerid]);
  1157. PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  1158. }
  1159.  
  1160. else if(floatround(Speed, floatround_floor) > 200){
  1161. PlayerTextDrawShow(playerid, Textdraw6[playerid]);
  1162. PlayerTextDrawShow(playerid, Textdraw7[playerid]);
  1163. PlayerTextDrawShow(playerid, Textdraw8[playerid]);
  1164. PlayerTextDrawShow(playerid, Textdraw9[playerid]);
  1165. PlayerTextDrawShow(playerid, Textdraw10[playerid]);
  1166. }
  1167.  
  1168. //TextDrawSetPreviewModel(Textdraw11, "%d",GetVehicleModel(vehicleid));
  1169.  
  1170.  
  1171. }
  1172. else
  1173. {
  1174. PlayerTextDrawSetString(playerid, Textdraw3[playerid], " ");
  1175. PlayerTextDrawSetString(playerid, Textdraw12[playerid], " ");
  1176. }
  1177. return 1;
  1178. }
  1179.  
  1180.  
  1181. forward Speedometer2(playerid);
  1182. public Speedometer2(playerid)
  1183. {
  1184. new vehicleid;
  1185. vehicleid = GetPlayerVehicleID(playerid);
  1186. new Float:vehicle_health,final_vehicle_health,string[257];
  1187. if(vehicleid != 0)
  1188. {
  1189. TextDrawShowForPlayer(playerid, speedom0);
  1190. TextDrawShowForPlayer(playerid, speedom1);
  1191. TextDrawShowForPlayer(playerid, speedom2);
  1192. PlayerTextDrawShow(playerid, speedom3[playerid]);
  1193. TextDrawShowForPlayer(playerid, speedom17);
  1194. TextDrawShowForPlayer(playerid, speedom18);
  1195. TextDrawShowForPlayer(playerid, speedom19);
  1196. TextDrawShowForPlayer(playerid, speedom23);
  1197. PlayerTextDrawShow(playerid, speedom20[playerid]);
  1198. PlayerTextDrawShow(playerid, speedom22[playerid]);
  1199.  
  1200. new Float:VelX, Float:VelY, Float:VelZ;
  1201. GetVehicleVelocity(vehicleid, VelX, VelY, VelZ);
  1202. new Float:Speed;
  1203. Speed = (floatsqroot(((VelX*VelX)+(VelY*VelY))+(VelZ*VelZ))* 181.5);
  1204. GetVehicleHealth(vehicleid,vehicle_health);
  1205. final_vehicle_health = floatround(floatround(vehicle_health)); //This will make the health show at 100 when the vehicle is not damaged and at 0 when it is in fire.
  1206. format(string,257,"HEALTH: ~b~%i.0",final_vehicle_health);
  1207. PlayerTextDrawSetString(playerid, speedom22[playerid], string);
  1208. format(string,257,"%s",VehicleName2[GetVehicleModel(vehicleid)-400]);
  1209. PlayerTextDrawSetString(playerid, speedom20[playerid], string);
  1210.  
  1211. if(floatround(Speed, floatround_floor) < 20){
  1212. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1213. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1214. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1215. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1216. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1217. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1218. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1219. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1220. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1221. PlayerTextDrawHide(playerid, speedom13[playerid]);
  1222. PlayerTextDrawHide(playerid, speedom14[playerid]);
  1223. PlayerTextDrawHide(playerid, speedom15[playerid]);
  1224. PlayerTextDrawHide(playerid, speedom16[playerid]);
  1225. }
  1226.  
  1227. else if(floatround(Speed, floatround_floor) > 20 && floatround(Speed, floatround_floor) < 40){
  1228. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1229. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1230. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1231. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1232. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1233. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1234. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1235. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1236. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1237. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1238. PlayerTextDrawHide(playerid, speedom14[playerid]);
  1239. PlayerTextDrawHide(playerid, speedom15[playerid]);
  1240. PlayerTextDrawHide(playerid, speedom16[playerid]);
  1241. }
  1242.  
  1243. else if(floatround(Speed, floatround_floor) > 40 && floatround(Speed, floatround_floor) < 60){
  1244. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1245. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1246. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1247. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1248. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1249. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1250. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1251. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1252. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1253. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1254. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1255. PlayerTextDrawHide(playerid, speedom15[playerid]);
  1256. PlayerTextDrawHide(playerid, speedom16[playerid]);
  1257. }
  1258.  
  1259. else if(floatround(Speed, floatround_floor) > 60 && floatround(Speed, floatround_floor) < 80){
  1260. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1261. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1262. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1263. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1264. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1265. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1266. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1267. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1268. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1269. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1270. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1271. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1272. PlayerTextDrawHide(playerid, speedom16[playerid]);
  1273. }
  1274.  
  1275. else if(floatround(Speed, floatround_floor) > 80 && floatround(Speed, floatround_floor) < 100){
  1276. PlayerTextDrawHide(playerid, speedom4[playerid]);
  1277. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1278. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1279. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1280. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1281. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1282. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1283. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1284. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1285. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1286. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1287. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1288. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1289. }
  1290.  
  1291. else if(floatround(Speed, floatround_floor) > 100 && floatround(Speed, floatround_floor) < 120){
  1292. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1293. PlayerTextDrawHide(playerid, speedom5[playerid]);
  1294. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1295. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1296. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1297. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1298. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1299. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1300. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1301. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1302. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1303. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1304. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1305. }
  1306.  
  1307. else if(floatround(Speed, floatround_floor) > 120 && floatround(Speed, floatround_floor) < 140){
  1308. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1309. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1310. PlayerTextDrawHide(playerid, speedom6[playerid]);
  1311. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1312. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1313. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1314. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1315. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1316. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1317. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1318. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1319. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1320. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1321. }
  1322.  
  1323. else if(floatround(Speed, floatround_floor) > 140 && floatround(Speed, floatround_floor) < 160){
  1324. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1325. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1326. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1327. PlayerTextDrawHide(playerid, speedom7[playerid]);
  1328. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1329. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1330. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1331. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1332. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1333. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1334. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1335. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1336. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1337. }
  1338.  
  1339. else if(floatround(Speed, floatround_floor) > 160 && floatround(Speed, floatround_floor) < 180){
  1340. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1341. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1342. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1343. PlayerTextDrawShow(playerid, speedom7[playerid]);
  1344. PlayerTextDrawHide(playerid, speedom8[playerid]);
  1345. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1346. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1347. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1348. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1349. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1350. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1351. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1352. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1353. }
  1354.  
  1355. else if(floatround(Speed, floatround_floor) > 180 && floatround(Speed, floatround_floor) < 200){
  1356. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1357. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1358. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1359. PlayerTextDrawShow(playerid, speedom7[playerid]);
  1360. PlayerTextDrawShow(playerid, speedom8[playerid]);
  1361. PlayerTextDrawHide(playerid, speedom9[playerid]);
  1362. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1363. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1364. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1365. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1366. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1367. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1368. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1369. }
  1370.  
  1371. else if(floatround(Speed, floatround_floor) > 200 && floatround(Speed, floatround_floor) < 220){
  1372. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1373. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1374. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1375. PlayerTextDrawShow(playerid, speedom7[playerid]);
  1376. PlayerTextDrawShow(playerid, speedom8[playerid]);
  1377. PlayerTextDrawShow(playerid, speedom9[playerid]);
  1378. PlayerTextDrawHide(playerid, speedom10[playerid]);
  1379. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1380. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1381. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1382. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1383. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1384. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1385. }
  1386.  
  1387. else if(floatround(Speed, floatround_floor) > 220 && floatround(Speed, floatround_floor) < 240){
  1388. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1389. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1390. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1391. PlayerTextDrawShow(playerid, speedom7[playerid]);
  1392. PlayerTextDrawShow(playerid, speedom8[playerid]);
  1393. PlayerTextDrawShow(playerid, speedom9[playerid]);
  1394. PlayerTextDrawShow(playerid, speedom10[playerid]);
  1395. PlayerTextDrawHide(playerid, speedom11[playerid]);
  1396. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1397. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1398. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1399. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1400. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1401. }
  1402.  
  1403. else if(floatround(Speed, floatround_floor) > 240){
  1404. PlayerTextDrawShow(playerid, speedom4[playerid]);
  1405. PlayerTextDrawShow(playerid, speedom5[playerid]);
  1406. PlayerTextDrawShow(playerid, speedom6[playerid]);
  1407. PlayerTextDrawShow(playerid, speedom7[playerid]);
  1408. PlayerTextDrawShow(playerid, speedom8[playerid]);
  1409. PlayerTextDrawShow(playerid, speedom9[playerid]);
  1410. PlayerTextDrawShow(playerid, speedom10[playerid]);
  1411. PlayerTextDrawShow(playerid, speedom11[playerid]);
  1412. PlayerTextDrawShow(playerid, speedom12[playerid]);
  1413. PlayerTextDrawShow(playerid, speedom13[playerid]);
  1414. PlayerTextDrawShow(playerid, speedom14[playerid]);
  1415. PlayerTextDrawShow(playerid, speedom15[playerid]);
  1416. PlayerTextDrawShow(playerid, speedom16[playerid]);
  1417. }
  1418. //TextDrawSetPreviewModel(Textdraw11, "%d",GetVehicleModel(vehicleid));
  1419.  
  1420.  
  1421. }
  1422. else
  1423. {
  1424. PlayerTextDrawSetString(playerid, speedom20[playerid], " ");
  1425. PlayerTextDrawSetString(playerid, speedom22[playerid], " ");
  1426. }
  1427. return 1;
  1428. }
  1429.  
  1430. forward Speedometer3(playerid);
  1431. public Speedometer3(playerid)
  1432. {
  1433. new vehicleid;
  1434. vehicleid = GetPlayerVehicleID(playerid);
  1435. new Float:vehicle_health,final_vehicle_health,string[257];
  1436. if(vehicleid != 0)
  1437. {
  1438. TextDrawShowForPlayer(playerid, speedm0);
  1439. TextDrawShowForPlayer(playerid, speedm1);
  1440. PlayerTextDrawShow(playerid, speedm2[playerid]);
  1441. TextDrawShowForPlayer(playerid, speedm3);
  1442. PlayerTextDrawShow(playerid, speedm5[playerid]);
  1443. TextDrawShowForPlayer(playerid, speedm6);
  1444.  
  1445. new Float:VelX, Float:VelY, Float:VelZ;
  1446. GetVehicleVelocity(vehicleid, VelX, VelY, VelZ);
  1447. new Float:Speed;
  1448. Speed = (floatsqroot(((VelX*VelX)+(VelY*VelY))+(VelZ*VelZ))* 181.5);
  1449. GetVehicleHealth(vehicleid,vehicle_health);
  1450. final_vehicle_health = floatround(floatround(vehicle_health)); //This will make the health show at 100 when the vehicle is not damaged and at 0 when it is in fire.
  1451. format(string,257,"Vehicle: ~p~%s~n~~g~Health: ~g~~h~%i.0", VehicleName2[GetVehicleModel(vehicleid)-400], final_vehicle_health);
  1452. PlayerTextDrawSetString(playerid ,speedm5[playerid], string);
  1453. format(string,257,"%i",floatround(Speed, floatround_floor));
  1454. PlayerTextDrawSetString(playerid, speedm2[playerid], string);
  1455.  
  1456.  
  1457. if(floatround(Speed, floatround_floor) < 20){
  1458. PlayerTextDrawHide(playerid, speedm7[playerid]);
  1459. PlayerTextDrawHide(playerid, speedm8[playerid]);
  1460. PlayerTextDrawHide(playerid, speedm9[playerid]);
  1461. PlayerTextDrawHide(playerid, speedm10[playerid]);
  1462. }
  1463.  
  1464. else if(floatround(Speed, floatround_floor) > 20 && floatround(Speed, floatround_floor) < 80){
  1465. PlayerTextDrawHide(playerid, speedm7[playerid]);
  1466. PlayerTextDrawHide(playerid, speedm8[playerid]);
  1467. PlayerTextDrawHide(playerid, speedm9[playerid]);
  1468. PlayerTextDrawShow(playerid, speedm10[playerid]);
  1469. }
  1470.  
  1471. else if(floatround(Speed, floatround_floor) > 80 && floatround(Speed, floatround_floor) < 140){
  1472. PlayerTextDrawHide(playerid, speedm7[playerid]);
  1473. PlayerTextDrawHide(playerid, speedm8[playerid]);
  1474. PlayerTextDrawShow(playerid, speedm9[playerid]);
  1475. PlayerTextDrawShow(playerid, speedm10[playerid]);
  1476. }
  1477.  
  1478. else if(floatround(Speed, floatround_floor) > 140 && floatround(Speed, floatround_floor) < 190){
  1479. PlayerTextDrawHide(playerid, speedm7[playerid]);
  1480. PlayerTextDrawShow(playerid, speedm8[playerid]);
  1481. PlayerTextDrawShow(playerid, speedm9[playerid]);
  1482. PlayerTextDrawShow(playerid, speedm10[playerid]);
  1483. }
  1484.  
  1485. else if(floatround(Speed, floatround_floor) > 190){
  1486. PlayerTextDrawShow(playerid, speedm7[playerid]);
  1487. PlayerTextDrawShow(playerid, speedm8[playerid]);
  1488. PlayerTextDrawShow(playerid, speedm9[playerid]);
  1489. PlayerTextDrawShow(playerid, speedm10[playerid]);
  1490. }
  1491.  
  1492. //TextDrawSetPreviewModel(Textdraw11, "%d",GetVehicleModel(vehicleid));
  1493.  
  1494.  
  1495. }
  1496. else
  1497. {
  1498. PlayerTextDrawSetString(playerid, speedm5[playerid], " ");
  1499. PlayerTextDrawSetString(playerid, speedm2[playerid], " ");
  1500. }
  1501. return 1;
  1502. }
  1503.  
  1504. public OnPlayerEnterCheckpoint(playerid)
  1505. {
  1506. return 1;
  1507. }
  1508.  
  1509. public OnPlayerLeaveCheckpoint(playerid)
  1510. {
  1511. return 1;
  1512. }
  1513.  
  1514. public OnPlayerEnterRaceCheckpoint(playerid)
  1515. {
  1516. return 1;
  1517. }
  1518.  
  1519. public OnPlayerLeaveRaceCheckpoint(playerid)
  1520. {
  1521. return 1;
  1522. }
  1523.  
  1524. public OnRconCommand(cmd[])
  1525. {
  1526. return 1;
  1527. }
  1528.  
  1529. public OnPlayerRequestSpawn(playerid)
  1530. {
  1531. return 1;
  1532. }
  1533.  
  1534. public OnObjectMoved(objectid)
  1535. {
  1536. return 1;
  1537. }
  1538.  
  1539. public OnPlayerObjectMoved(playerid, objectid)
  1540. {
  1541. return 1;
  1542. }
  1543.  
  1544. public OnPlayerPickUpPickup(playerid, pickupid)
  1545. {
  1546. return 1;
  1547. }
  1548.  
  1549. public OnVehicleMod(playerid, vehicleid, componentid)
  1550. {
  1551. return 1;
  1552. }
  1553.  
  1554. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  1555. {
  1556. return 1;
  1557. }
  1558.  
  1559. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  1560. {
  1561. return 1;
  1562. }
  1563.  
  1564. public OnPlayerSelectedMenuRow(playerid, row)
  1565. {
  1566. return 1;
  1567. }
  1568.  
  1569. public OnPlayerExitedMenu(playerid)
  1570. {
  1571. return 1;
  1572. }
  1573.  
  1574. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1575. {
  1576. return 1;
  1577. }
  1578.  
  1579. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1580. {
  1581. return 1;
  1582. }
  1583.  
  1584. public OnRconLoginAttempt(ip[], password[], success)
  1585. {
  1586. return 1;
  1587. }
  1588.  
  1589. public OnPlayerUpdate(playerid)
  1590. {
  1591. return 1;
  1592. }
  1593.  
  1594. public OnPlayerStreamIn(playerid, forplayerid)
  1595. {
  1596. return 1;
  1597. }
  1598.  
  1599. public OnPlayerStreamOut(playerid, forplayerid)
  1600. {
  1601. return 1;
  1602. }
  1603.  
  1604. public OnVehicleStreamIn(vehicleid, forplayerid)
  1605. {
  1606. return 1;
  1607. }
  1608.  
  1609. public OnVehicleStreamOut(vehicleid, forplayerid)
  1610. {
  1611. return 1;
  1612. }
  1613.  
  1614. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1615. {
  1616. return 1;
  1617. }
  1618.  
  1619. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1620. {
  1621. return 1;
  1622. }
RAW Paste Data