MPH and KMH
#1

So,i'm creating and anticheat and i've this stock:

pawn Код:
stock GetVehicleSpeed(vehicleid)
{
    new Float:v_vX, Float:v_vY, Float:v_vZ, Float:retres;
    GetVehicleVelocity(vehicleid, v_vX, v_vY, v_vZ);
    retres = floatsqroot(floatabs(floatpower(v_vX + v_vY + v_vZ, 2)));
    return floatround(retres * 100, floatround_ceil);
}
This detects MPH speed,i need to detect KMH speed,how?Thanks.
Reply


Messages In This Thread
MPH and KMH - by Face9000 - 02.01.2012, 10:15
Re: MPH and KMH - by HondaCBR - 02.01.2012, 10:23
Re: MPH and KMH - by Dark_Kostas - 02.01.2012, 10:24
Re: MPH and KMH - by Face9000 - 02.01.2012, 10:29

Forum Jump:


Users browsing this thread: 2 Guest(s)