SA-MP Forums Archive
[Tutorial] Perfect Vehicle Jump Command for beginers. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Perfect Vehicle Jump Command for beginers. (/showthread.php?tid=540834)



Perfect Vehicle Jump Command for beginers. - Gogeta - 07.10.2014

Here you need ZCMD btw
pawn Код:
CMD:jump(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid)) // we check if the player is in any vehicle
    {
        new vehid = GetPlayerVehicleID(playerid); // a variable to get player vehicle.
        new Float:X,Float:Y,Float:Z; // Floats to save cords
        GetVehicleVelocity(vehid,X,Y,Z); // We get cords and we store them in variable above.
        SetVehicleVelocity(vehid,X,Y,Z+0.3); // We put same expect Z+0.3 Which is higher
    }
    return 1;
}