Jou. Leute.
Script :
-- You can add up to 2 sounds for this. Add or delete resource.addfile as you need
resource.AddFile("sound/Dubstep.wav")
resource.AddFile("sound/Electro.Wav")
-- Remember to change the name of the sounds to the sound you want from above
local function PlayMusic(wintype)
if wintype == WIN_RUNNER then
BroadcastLua('surface.PlaySound("Dubstep.wav")')
elseif wintype == WIN_DEATH then
BroadcastLua('surface.PlaySound("Electro.wav")')
end
end
hook.Add("DeathrunEndRound", "MyMusic", PlayMusic)
Ich erstelle bei : Erstelle Spiel dann wähle ich 4 Spieler und so spiele ich mit Freunde.
Wo muss ich aber dieses Lua einfügen damit sie es hören?