Flip vehicle with Num pad key
#2

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;
}
Reply


Messages In This Thread
Flip vehicle with Num pad key - by Derexi - 11.08.2014, 14:58
Re: Flip vehicle with Num pad key - by SKAzini - 11.08.2014, 15:03
Re: Flip vehicle with Num pad key - by NaClchemistryK - 11.08.2014, 15:04
Re: Flip vehicle with Num pad key - by Derexi - 17.08.2014, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)