mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
55
gamemodes/helix/plugins/betterlogs/sh_plugin.lua
Normal file
55
gamemodes/helix/plugins/betterlogs/sh_plugin.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
local ix = ix
|
||||
local CAMI = CAMI
|
||||
local LocalPlayer = LocalPlayer
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
PLUGIN.name = "Better Logs"
|
||||
PLUGIN.author = "AleXXX_007"
|
||||
PLUGIN.description = "Saves logs in a database and allows permitted staff to look them up."
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
|
||||
CAMI.RegisterPrivilege({
|
||||
Name = "Helix - Manage Logs",
|
||||
MinAccess = "admin"
|
||||
})
|
||||
|
||||
CAMI.RegisterPrivilege({
|
||||
Name = "Helix - Tp",
|
||||
MinAccess = "admin"
|
||||
})
|
||||
|
||||
ix.lang.AddTable("french", {
|
||||
optLogDefaultTime = "Durée de recherche des logs par défaut",
|
||||
optdLogDefaultTime = "La durée par défaut de la recherche dans l'outil de recherche des logs."
|
||||
})
|
||||
|
||||
ix.lang.AddTable("english", {
|
||||
optLogDefaultTime = "Durée de recherche des logs par défaut",
|
||||
optdLogDefaultTime = "La durée par défaut de la recherche dans l'outil de recherche des logs."
|
||||
})
|
||||
|
||||
ix.lang.AddTable("spanish", {
|
||||
optdLogDefaultTime = "La cantidad de tiempo por defecto para buscar en la herramienta de búsqueda de registros.",
|
||||
optLogDefaultTime = "Tiempo de búsqueda de registros por defecto"
|
||||
})
|
||||
|
||||
ix.option.Add("logDefaultTime", ix.type.string, "1d", {
|
||||
bNetworked = true,
|
||||
category = "Administration",
|
||||
hidden = function()
|
||||
return !CAMI.PlayerHasAccess(LocalPlayer(), "Helix - Manage Logs", nil)
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user