Fuel consumption system?
#10

My GetVehicleSpeed:

pawn Код:
forward GetVehicleSpeed(vehicleid);
public GetVehicleSpeed(vehicleid)
{
    new Float:X,
        Float:Y,
        Float:Z;
       
    GetVehicleVelocity(vehicleid, X, Y, Z);
   
    return floatround(floatsqroot(X * X + Y * Y + Z * Z) * 180);
}
It's good?

By cons I do not understand the code.

Per second, the Sultan will lose how many liters? It is with the 100% that I'm a bit stuck.
Reply


Messages In This Thread
Fuel consumption system? - by Baltimore - 31.01.2015, 19:19
Re: Fuel consumption system? - by Fredx - 31.01.2015, 19:51
Re : Fuel consumption system? - by Baltimore - 01.02.2015, 18:33
Re : Fuel consumption system? - by Baltimore - 07.02.2015, 09:15
Re: Fuel consumption system? - by KayJ - 07.02.2015, 09:40
Re : Fuel consumption system? - by Baltimore - 07.02.2015, 14:29
Re : Fuel consumption system? - by Baltimore - 08.02.2015, 10:59
Re: Fuel consumption system? - by CalvinC - 08.02.2015, 11:08
Respuesta: Fuel consumption system? - by admantis - 08.02.2015, 12:35
Re : Fuel consumption system? - by Baltimore - 08.02.2015, 16:48

Forum Jump:


Users browsing this thread: 4 Guest(s)