12.06.2014, 10:56
pawn Код:
// after includes ?
new Float:vSPEED = 2.0;
// OnPlayerKeyStateChange
new vID = GetPlayerVehicleID(playerid),
vModel = GetVehicleModel(vID);
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && vModel == MODEL_ID_HERE) // add vehicle model ID here
{
static Float:POS_X, Float:POS_Y, Float:POS_Z;
GetVehicleVelocity(vID, POS_X, POS_Y, POS_Z);
if(POS_X < 2.0 && POS_Y < 2.0 && POS_Z < 1.3)
{
SetVehicleVelocity(vID, floatmul(POS_X, vSPEED), floatmul(POS_Y, vSPEED), floatmul(POS_Z, vSPEED));
}
}