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
|
Man, i just change the if((newkeys&KEY_SUBMISSION)&&!(oldkeys&KEY_SUBMISS ION))
to if((newkeys&KEY_CROUCH)&&!(oldkeys&KEY_CROUCH) and its working do you think its better??