How to make 3D SpeedoMeter?? -
Frikandel - 15.11.2009
The title say it, how to make an 3D speedometer an friend have it but he don't tell it to me
can someone help me?
Re: How to make 3D SpeedoMeter?? -
Redirect Left - 15.11.2009
Screenshot?
Note alot of speedometers are actually GTA:SA modifications, not actual SA:MP server mods, especially 3D ones.
Re: How to make 3D SpeedoMeter?? -
Zeromanster - 15.11.2009
Use
CreatePlayer3DTextLabel &
UpdatePlayer3DTextLabelText combined with the
GetVehicleVelocity function.
Re: How to make 3D SpeedoMeter?? -
Dresden - 15.11.2009
Maybe he's talking about how GetPlayerVelocity only calculates x velocity and y velocity and he wants to know how to get their real velocity?
Re: How to make 3D SpeedoMeter?? -
miokie - 15.11.2009
Quote:
Originally Posted by Dresden
Maybe he's talking about how GetPlayerVelocity only calculates x velocity and y velocity and he wants to know how to get their real velocity?
|
Theres a function somewhere that is GetPlayerSpeed updated with the new velocity functions.
(I did not make this btw)
pawn Код:
stock GetPlayerSpeed(playerid, bool:kmh) // by misco
{
new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
Re: How to make 3D SpeedoMeter?? -
[JIeXa] - 15.11.2009
stock GetPlayerSpeed(playerid) // by Aleksey
{
new Float:ST[4];
if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]); else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 253.3;
return floatround(ST[3]);
}
this is maybe currently
Re: How to make 3D SpeedoMeter?? -
Frikandel - 16.11.2009
screen added
[img width=1024 height=640]http://files.uploadffs.com/b/ce9fb419/samp009.png[/img]
the owner of that script make a screenshot for me so here is the screen
Re: How to make 3D SpeedoMeter?? -
BlackFoX - 16.11.2009
> Create 3D Label
> Attach to vehicle
> Update 3D Label
You can find the Function on Sa-mp Wiki
to Update the Label you can use OnPlayerUpdate or a Timer
Re: How to make 3D SpeedoMeter?? -
Frikandel - 16.11.2009
Can you make the script =P, i'm not good in 3D
Re: How to make 3D SpeedoMeter?? -
[XST]O_x - 16.11.2009
Quote:
Originally Posted by Frikandel
i'm not good in 3D
|
What in the fucking world?
Anyway there's already a speedometer release like you want:
http://forum.sa-mp.com/index.php?topic=120524.0