local function Lockdown(ply)
if not lstat and ply:Team() == TEAM_MAYOR then
for k,v in pairs(player.GetAll()) do
v:ConCommand("play ambient/alarms/siren.wav\n")
end
lstat = true
PrintMessageAll(HUD_PRINTTALK , LANGUAGE.lockdown_started)
RunConsoleCommand("DarkRP_LockDown", 1)
NotifyAll(4, 3, LANGUAGE.lockdown_started)
end
return ""
end
The sound will keep playing
How would I stop the sound after 20 seconds?
You could use this, then stop the noise when the time is over.
[b][url=http://wiki.garrysmod.com/?title=G.CreateSound]G.CreateSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
How can I designate it to stop after 20 seconds?
Use a timer and use sound:Stop()
Sorry, you need to Log In to post a reply to this thread.