Speedometer formula for OnPlayerUpdate
#4

Use what I'm using ^^
pawn Код:
stock GetPlayerSpeed(playerid)
{
    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)) * 100.3;
    return floatround(ST[3]);
}
Reply


Messages In This Thread
Speedometer formula for OnPlayerUpdate - by wups - 12.07.2010, 08:17
Re: Speedometer formula for OnPlayerUpdate - by [TDM]Relax - 12.07.2010, 08:46
Re: Speedometer formula for OnPlayerUpdate - by wups - 13.07.2010, 09:02
Re: Speedometer formula for OnPlayerUpdate - by [XST]O_x - 13.07.2010, 09:04
Re: Speedometer formula for OnPlayerUpdate - by Betamaster - 13.07.2010, 09:12
Re: Speedometer formula for OnPlayerUpdate - by wups - 13.07.2010, 09:27
Re: Speedometer formula for OnPlayerUpdate - by RyDeR` - 13.07.2010, 11:35
Re: Speedometer formula for OnPlayerUpdate - by Jeffry - 22.07.2010, 13:23
Re: Speedometer formula for OnPlayerUpdate - by [XST]O_x - 22.07.2010, 13:28
Re: Speedometer formula for OnPlayerUpdate - by Jeffry - 22.07.2010, 14:51

Forum Jump:


Users browsing this thread: 5 Guest(s)