Function SetVehicleAngularVelocity sets the angular X, Y and Z velocity of a vehicle.
Function SetVehicleAngularVelocity was added in 0.3b and will not work in earlier versions!
This function has no effect on unoccupied vehicles and does not affect trains.

(vehicleid, Float:X, Float:Y, Float:Z)
int vehicleid The ID of the vehicle to set the velocity of.
float X The amount of velocity in the angular X direction.
float Y The amount of velocity in the angular Y direction.
float Z The amount of velocity in the angular Z direction.

Return Values:
  • 1: The function executed successfully.
  • 0: The function failed to execute. The vehicle does not exist.

public OnPlayerCommandText(playerid, cmdtext[])
    if (!strcmp("/spin", cmdtext))
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
	return 1;

Related Functions
The following functions may be useful, as they are related to this function in one way or another.