Hey there, I want to change the darkRP lockdown to loop a sound as well as play a sound when it is initiated. Basically, the mayor initiates lockdown, an overwatch message is broadcasted, then for the duration of the lockdown, this specific sound is looped. Once the lockdown ends, the sound stops.
local function Lockdown(ply) if not lstat and ply:Team() == TEAM_MAYOR then for k,v in pairs(player.GetAll()) do v:ConCommand("play npc/overwatch/cityvoice/f_confirmcivilstatus_1_spkr.wav ") end lstat = true PrintMessageAll(HUD_PRINTTALK , LANGUAGE.lockdown_started) RunConsoleCommand("DarkRP_LockDown", 1) NotifyAll(4, 3, LANGUAGE.lockdown_started) end return "" end
The sound I want to loop is: “ambient/alarms/citadel_alert_loop2.wav”