SA-MP Forums Archive
Speedometer help please... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Speedometer help please... (/showthread.php?tid=92845)



Speedometer help please... - introzen - 22.08.2009

pawn Код:
{
    new vehicle = GetPlayerVehicleID(playerid);
    new status[256];
    new fuel[256];
    new Fuel = VehicleInfo[vehicle][vFuel];
    new Float:health;
    GetVehicleHealth(vehicle,health);
    format(status,256,"Status: ~p~%f",health);
    format(fuel,256,"Fuel: ~b~%d~w~\\l",Fuel);
    TextDrawSetString(Textdraw0,"km/h:");
    TextDrawSetString(Textdraw1,fuel);
    TextDrawSetString(Textdraw2,status);
    TextDrawHideForPlayer(playerid,Textdraw0);
    TextDrawHideForPlayer(playerid,Textdraw1);
    TextDrawHideForPlayer(playerid,Textdraw2);
    TextDrawShowForPlayer(playerid,Textdraw0);
    TextDrawShowForPlayer(playerid,Textdraw1);
    TextDrawShowForPlayer(playerid,Textdraw2);
}
That's my current speedometer... But it doesn't work perfectly... It shows the strings but not the right values...

And how to get a players speed?

Thank you =)


Re: Speedometer help please... - Doppeyy - 22.08.2009

I didnt work with speedo's before .
But maybey you can download another one and look how they got the speed ?

/Artix


Re: Speedometer help please... - introzen - 22.08.2009

Don't understand anything when I try to check... First of all, I need help with the status and fuel on the speedo... They doesn't work.