public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if((newkeys & KEY_NEMTUDOM) & IsPlayerInAnyVehicle(playerid)) {
new Float:a;
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
SetVehicleZAngle(GetPlayerVehicleID(playerid), a);
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
}
vagy valami ilyesmi..
KEY_NEMTUDOM helyére írj be egy gombot, pl KEY_FIRE