GetVehicleVelocity
#3

Too lazy to search?

https://sampforum.blast.hk/showthread.php?pid=750094#pid750094

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
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
GetVehicleVelocity - by ScottCFR - 15.07.2010, 13:06
Re: GetVehicleVelocity - by iggy1 - 15.07.2010, 13:12
Re: GetVehicleVelocity - by Finn - 15.07.2010, 13:16
Re: GetVehicleVelocity - by zSuYaNw - 15.07.2010, 15:17

Forum Jump:


Users browsing this thread: 1 Guest(s)