Quote:
Originally Posted by Skaizo
try it
pawn Код:
//at top of script #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) //OnPlayerKeyStateChange public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if((newkeys&KEY_SUBMISSION)&&!(oldkeys&KEY_SUBMISSION)) { new VehicleID,Float:B; VehicleID = GetPlayerVehicleID(playerid); GetVehicleZAngle(VehicleID,B); SetVehicleZAngle(VehicleID,B); SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped."); } return 1; }
press 2 to flip
|
Works like a charm! but can i change the height of flip? when i press 2 the car jumps and flips up to 10 inches.