11.08.2014, 15:03
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_ANALOG_LEFT))
{
new Float:z;
GetVehicleZAngle(GetPlayerVehicleID(playerid), z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), z);
}
return 1;
}