21.06.2012, 06:42
try it
press 2 to flip
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;
}