20.08.2012, 21:20
You'll have to use SetTimerEx becuse the function Speedomeeter wants to have a variable into it, do it like this:
I'm not sure if this will work, because you have one textdraw for all the players, you will need to have one textdraw for every player, otherwise you'll just be able to measure one players speed.
And if you don't want it to show if the player is not in a car you'll have to do it like a timer that gets the players state and if he's in a car you show him the textdraw of that car.
Hope it helped, ask if you need any more help
Код:
SetTimerEx("Speedometer", 100, true, "i", playerid);
And if you don't want it to show if the player is not in a car you'll have to do it like a timer that gets the players state and if he's in a car you show him the textdraw of that car.
Hope it helped, ask if you need any more help