[Ajuda] Velocimetro
#2

pawn Код:
static Float:poskm[3];
stock GetSpeed(playerid, mode = 1) {
    GetVehicleVelocity(GetPlayerVehicleID(playerid), poskm[0], poskm[1], poskm[2]);
    return IsPlayerInAnyVehicle(playerid) ? floatround(((floatsqroot(((poskm[0] * poskm[0]) + (poskm[1] * poskm[1]) + (poskm[2] * poskm[2]))) * (!mode ? 105.0:170.0))) * 1):0;
}
Crйditos a [O.z]Caroline
Reply


Messages In This Thread
Velocimetro - by JuniorRiddle - 05.02.2013, 03:52
Re: Velocimetro - by Dwayne-Pheonix - 05.02.2013, 11:10

Forum Jump:


Users browsing this thread: 2 Guest(s)