[Question] speedometer - 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)
+--- Thread: [Question] speedometer (
/showthread.php?tid=373660)
[Question] speedometer -
leomessie - 31.08.2012
Hello.
I have a small question about a speedometer. I dont know how to make it. I need this: Name, Speed, Height, Health and at last a GPS. This is the example how I want it:
Name: Turismo
Speed: 456 km/h
Height 12.3 m
Health 800
Fuel: 52
GPS: Los Santos Airport
I dont ask if anyone want to make it for me. But can anyone tell me more about it? Today I tried it a lot without any good result.
So anyone that will me help?
Thanks.
PS:
I want it in a textdraw. Thanks for reading ! hope anyone can help me.
Re: [Question] speedometer -
ThePrograme - 31.08.2012
You write like you want somebody to make it for you if yu want that you got to post this in Scripring Request Thread
Re: [Question] speedometer -
Balla - 31.08.2012
Quote:
Originally Posted by ThePrograme
You write like you want somebody to make it for you if yu want that you got to post this in Scripring Request Thread
|
Can't you read? he ask if anyone tell more about it. [
Quote:
Originally Posted by leomessie
I dont ask if anyone want to make it for me. But can anyone tell me more about it?
|
Re: [Question] speedometer -
XStormiest - 31.08.2012
some functions you will need:
pawn Код:
GetVehicleVelocity
GetVehicleModel(GetPlayerVehicleID(playerid) );
GetVehicleHealth
TextDrawCreator ( this is not function) ..search for Zamaroht's Textdraw to make a textdraw, and make a box..after use it in combination with what i said..and what you learning and yeah a nice Fuel system
new Fuel = 100;
forward FuelLost(vehicleid);
public FuelLost(vehicleid)
{
Fuel --;
if(Fuel == 0)
{
for(new i = 0;i != MAX_PLAYERS;i++)
{
RemovePlayerFromVehicle(i);
}
}
return 1;
}
OnPlayerEnterVehicle(playerid,vehicleid,isspasanger)
{
SetTimerEx("FuelLost", 3000, true, "d", vehicleid);
return 1;
}
watch here for functions and what they do and how to use it...
https://sampwiki.blast.hk/
And after watch on forum for some tutorials good luck