function DarkRP.lockdown(ply)
    if lstat then
        if ply:EntIndex() == 0 then
            print(DarkRP.getPhrase("unable", "/lockdown", DarkRP.getPhrase("stop_lockdown")))
            return
        else
            DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/lockdown", DarkRP.getPhrase("stop_lockdown")))
            return ""
        end
    end
    if ply:EntIndex() == 0 or (RPExtraTeams[ply:Team()] and RPExtraTeams[ply:Team()].mayor) then
        for k,v in pairs(player.GetAll()) do
            v:ConCommand("play npc/overwatch/cityvoice/f_confirmcivilstatus_1_spkr.wav\n")
        end
        lstat = true
        DarkRP.printMessageAll(HUD_PRINTTALK, DarkRP.getPhrase("lockdown_started"))
        SetGlobalBool("DarkRP_LockDown", true)
        DarkRP.notifyAll(0, 3, DarkRP.getPhrase("lockdown_started"))
    else
        if ply:EntIndex() == 0 then
            print(DarkRP.getPhrase("incorrect_job", "/lockdown", ""))
        else
            DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("incorrect_job", "/lockdown", ""))
        end
    end
    return ""
end
concommand.Add("rp_lockdown", function(ply) DarkRP.lockdown(ply) end)
DarkRP.defineChatCommand("lockdown", function(ply) DarkRP.lockdown(ply) end)