Make A Spido
#1

How to make normal spido what equaly speed up and speed down?
Reply
#2

I think you have to know textdraws and the use of Float
Reply
#3

A fast search and i found this function made by Misco:

Код:
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);
}
Now just use this in a textdraw.
Reply
#4

Float and Textdraw.. God im smart
Reply
#5

Quote:
Originally Posted by Dolph
Float and Textdraw.. God im smart
It's not as simple as float.. It's a calculation
Reply
#6

how to show player it?
Reply
#7

There are tons of filterscripts of speedos with fancy textdraws and such. If you need a speedo and don't know how to script, use one of them. If you get curious as to how such a script works, open it up in your pawn editor and check it out.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)