05.04.2012, 13:50
EDIT:
Untested hope this works for you.
Add this below your defines,
We added this because key is not defined in SA:MP includes. You must define this yourself.
Untested hope this works for you.
Add this below your defines,
pawn Код:
KEY_AIM* (128)
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
new currentveh;
new Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
}
}
return 1;
}