12.10.2015, 13:31
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && newkeys & KEY_FIRE)
{
UnflipCar(GetPlayerVehicleID(playerid));
}
return 1;
}
UnflipCar(vehicleid)
{
new Float:angle;
GetVehicleZAngle(vehicleid, angle);
SetVehicleZAngle(vehicleid, angle);
return 1;
}