Help me with this please
#2

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.

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


Messages In This Thread
Help me with this please - by Acres - 23.12.2013, 11:08
Re: Help me with this please - by Konstantinos - 23.12.2013, 11:14

Forum Jump:


Users browsing this thread: 2 Guest(s)