GetVehicleVelocity problem?
#2

pawn Код:
stock Float:GetPlayerSpeed(playerid)
{
    new
      Float:vX,
      Float:vY,
      Float:vZ;
    if (!IsPlayerInAnyVehicle(playerid))
    {
      GetPlayerVelocity(playerid, vX, vY, vZ);
    }
    else
    {
      GetVehicleVelocity(GetPlayerVehicleID(playerid), vX, vY, vZ);
    }
    return floatsqroot(vX*vX + vY*vY + vZ*vZ);
}
I found that function, it seems to work.
Reply


Messages In This Thread
GetVehicleVelocity problem? - by Superthijs - 08.07.2012, 17:26
Re: GetVehicleVelocity problem? - by coole210 - 08.07.2012, 17:47
Re: GetVehicleVelocity problem? - by Superthijs - 08.07.2012, 18:01
Re: GetVehicleVelocity problem? - by coole210 - 08.07.2012, 18:04
Re: GetVehicleVelocity problem? - by Superthijs - 08.07.2012, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)