02.11.2010, 12:18
I made a stock which his action it's to get the vehicle speed .
its will work ? there is the code:
its will work ? there is the code:
Код:
stock GetVehicleSpeed(vehicleid) { if(vehicleid != INVALID_VEHICLE_ID) { new Float:X,Float:Y,Float:Z,Float:Speed; GetVehicleVelocity(vehicleid, X, Y, Z); Speed = floatsqroot(X*X + Y*Y + Z*Z)*200; return Speed; } return INVALID_VEHICLE_ID; }