ok hab ich gemacht
Spoiler anzeigen
//ohrstoepsel + p
case 25:
{
switch (player GVAR ["Earplugs",0]) do {
case 0: {hint composeText [ image "icons\sound.paa"," 90% Leiser"]; 1 fadeSound 0.1; player SVAR ["Earplugs", 10]; };
case 10: {hint composeText [ image "icons\sound.paa"," 60% Leiser"]; 1 fadeSound 0.4; player SVAR ["Earplugs", 40]; };
case 40: {hint composeText [ image "icons\sound.paa"," 30% Leiser"]; 1 fadeSound 0.7; player SVAR ["Earplugs", 70]; };
case 70: {hint composeText [ image "icons\sound_new.paa"," Normaler Sound"]; 1 fadeSound 1; player SVAR ["Earplugs", 0]; };
};
};
hilft aber leider nicht wenn ich ingame P drücke wird es ganz kurz leise dann sofort wieder auf standard lautstärke -.-