11.08.2014, 14:58
I want players to be able to flip their vehicles by pressing Num4 for example, but I've completely forgotten how to do it. Could someone help? Thanks
#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;
}
forgotten? you probably don't even know how to script.
this will 'remind' you please, search next time http://forum.sa-mp.com/showthread.ph...highlight=flip |