23.12.2013, 11:08
Hey guys i would like to know how i am abel to make like that if you write /jump IG then you will jump with car in the air but how i am abel to make it like i press 3 on my Numpad and it jumps? please help.
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;
}