[Ajuda] Getar velocidade ?
#1

http://www.youtube.com/watch?v=h1s54...ature=*********

O velocimetro criando com cуdigos pawn sу chega a 129, mais a velocidade mбxima do infernus й 180 se nгo me engano.

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
Getar velocidade ? - by Gleisson_. - 15.06.2013, 21:45
Re: Getar velocidade ? - by BielCOP - 15.06.2013, 22:04
Re: Getar velocidade ? - by Standby - 15.06.2013, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)