08.02.2015, 16:48
My GetVehicleSpeed:
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.
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);
}
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.