23.12.2013, 11:14
NUM 3 is not a valid key: https://sampwiki.blast.hk/wiki/Keys
You can use SetVehicleVelocity and change the Z (height) parameter so the vehicle will jump.
You can use SetVehicleVelocity and change the Z (height) parameter so the vehicle will jump.
pawn Код:
CMD:jump(playerid, params[])
{
if (GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, -1, "You need to be a driver to use that command");
new
vehicleid = GetPlayerVehicleID(playerid),
Float: vx,
Float: vy,
Float: vz;
GetVehicleVelocity(vehicleid, vx, vy, vz);
SetVehicleVelocity(vehicleid, vx, vy, vz + 0.3);
return 1;
}