[DUV] GetVehicleVelocity, comofas?
#2

Essa GetVehicleVelocity SAMP й Toda Errada Digamos Usa Esta Stock do Dark Team PT

Final GM:
pawn Код:
stock
    GetSpeedKM(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;
}
Entгo Faz comando assim por Exemplo:

pawn Код:
if(!strcmp(cmdtext, "/velocidademinha", true))
{
new velocidade[44];
format(velocidade, sizeof(velocidade), "%dKPH й sua velocidade.",GetSpeedKM(playerid));
SendClientMessageToAll(0xFFFF00AA, velocidade);
return 1;
}
So Adapta ao Text Draw =P


Hoje й meu Ultimo Dia
Reply


Messages In This Thread
[DUV] GetVehicleVelocity, comofas? - by LeoH - 12.06.2010, 18:02
Re: [DUV] GetVehicleVelocity, comofas? - by ipsBruno - 12.06.2010, 18:16
Re: [DUV] GetVehicleVelocity, comofas? - by LeoH - 15.06.2010, 15:19
Re: [DUV] GetVehicleVelocity, comofas? - by BiieL - 15.06.2010, 16:04
Re: [DUV] GetVehicleVelocity, comofas? - by BiieL - 15.06.2010, 16:14
Re: [DUV] GetVehicleVelocity, comofas? - by GhOsT[X] - 15.06.2010, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)