How to get player vehicle speed?
#1

How to get player vehicle speed?


I need it :/
Reply
#2

Код:
GetVehicleSpeed(vehicleid)
{
	new Float:vx, Float:vy, Float:vz, Float:vel;
        vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
        vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5);
        return vel;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)