[Ajuda] Baixar velocidade...
#1

Ae galera tenho um velocimetro no meu GM, queria saber se da pra baixar mais a velocidade dele, tipo mal acelero e ja vai com 100 o.O.

Acho que isso fica aki \/

pawn Код:
///////////////// Velocimetro ///////////////////
stock VelocidadeVeiculo(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)) * 180.3;
    return floatround(ST[3]);
}
///////////////// Velocimetro ///////////////////
Reply
#2

Alguйm por favor ?
Reply
#3

pawn Код:
stock VelocidadeVeiculo(playerid) {
    new
        Float:PosX,
        Float:PosY,
        Float:PosZ,
        Float:PlayerSpeedDistance;

    GetVehicleVelocity(GetPlayerVehicleID(playerid), PosX, PosY, PosZ);
    PlayerSpeedDistance = floatmul(floatsqroot(floatadd(floatadd(floatpower(PosX, 2), floatpower(PosY, 2)), floatpower(PosZ, 2))), 170.0);
    new
        spe = floatround(PlayerSpeedDistance * 1);
    return spe;
}
Reply
#4

Quote:
Originally Posted by -******-
Посмотреть сообщение
pawn Код:
stock VelocidadeVeiculo(playerid) {
    new
        Float:PosX,
        Float:PosY,
        Float:PosZ,
        Float:PlayerSpeedDistance;

    GetVehicleVelocity(GetPlayerVehicleID(playerid), PosX, PosY, PosZ);
    PlayerSpeedDistance = floatmul(floatsqroot(floatadd(floatadd(floatpower(PosX, 2), floatpower(PosY, 2)), floatpower(PosZ, 2))), 170.0);
    new
        spe = floatround(PlayerSpeedDistance * 1);
    return spe;
}
.......... By ipsBruno
Reply
#5

Quote:
Originally Posted by Schocc
Посмотреть сообщение
.......... By ipsBruno
Nгo,crйditos а Dark Team PT.
Reply
#6

****** vlw ai baixou pouco mas ta de bom tamanha ;Р

Antes o Infernus dava 222km/h e agr dб 209km/h ;Р.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)