Hello,
How would I go about raising the Z angle?
How would I go about raising the Z angle?
Code:
CMD:flip(playerid, params[])
{
new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
{
if(IsPlayerInAnyVehicle(playerid))
{
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehicleZAngle(VehicleID, Angle);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, red, "ERROR: You must be in a vehicle to use this command");
}
}
return 1;
}