Quote:
Originally Posted by iZN
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)); } }
|
Wow thank you very much, two questions:
Where should I place it into the script and how do you define the speed? I mean, how do you define the new Cruiser Speed will be exactly like Infernus?