Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Raise Z Angle for vehicle

$
0
0
Hello,

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;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>