[Ajuda]Textdraw definicao
#4

use isto pra getar a velocidade:

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
[Ajuda]Textdraw definicao - by DrTHE - 14.10.2011, 12:58
Re: [Ajuda]Textdraw definicao - by Lipe_Stronda - 14.10.2011, 13:04
Re: [Ajuda]Textdraw definicao - by DrTHE - 14.10.2011, 13:16
Re: [Ajuda]Textdraw definicao - by Lipe_Stronda - 14.10.2011, 13:33

Forum Jump:


Users browsing this thread: 3 Guest(s)