[HELP] Speedometer problem
#2

pawn Код:
stock
    GetSpeed(playerid, mode = 1) //dark team pt
{
    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;
}
Reply


Messages In This Thread
[HELP] Speedometer problem - by Pooh7 - 08.11.2010, 11:18
Re: [HELP] Speedometer problem - by ipsBruno - 08.11.2010, 11:32
Re: [HELP] Speedometer problem - by Pooh7 - 08.11.2010, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)