diff --git a/luascripts/wolfadmin/commands/admin/ban.lua b/luascripts/wolfadmin/commands/admin/ban.lua index 7d05e08..43fc9b5 100644 --- a/luascripts/wolfadmin/commands/admin/ban.lua +++ b/luascripts/wolfadmin/commands/admin/ban.lua @@ -60,13 +60,16 @@ function commandBan(clientId, command, victim, ...) elseif args[1] then duration = 600 reason = table.concat(args, " ") - elseif not auth.isPlayerAllowed(clientId, "8") then + elseif auth.isPlayerAllowed(clientId, auth.PERM_PERMA) then + duration = -1 + reason = "banned by admin" + else et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dban usage: "..commands.getadmin("ban")["syntax"].."\";") return true end - if auth.isPlayerAllowed(cmdClient, "!") then + if auth.isPlayerAllowed(cmdClient, auth.PERM_IMMUNE) then et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dban: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is immune to this command.\";") return true diff --git a/luascripts/wolfadmin/commands/admin/kick.lua b/luascripts/wolfadmin/commands/admin/kick.lua index c92a37b..78e609f 100644 --- a/luascripts/wolfadmin/commands/admin/kick.lua +++ b/luascripts/wolfadmin/commands/admin/kick.lua @@ -47,7 +47,7 @@ function commandKick(clientId, command, victim, ...) return true end - if auth.isPlayerAllowed(cmdClient, "!") then + if auth.isPlayerAllowed(cmdClient, auth.PERM_IMMUNE) then et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dkick: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is immune to this command.\";") return true diff --git a/luascripts/wolfadmin/commands/admin/mute.lua b/luascripts/wolfadmin/commands/admin/mute.lua index 80ec6ad..65a32b4 100644 --- a/luascripts/wolfadmin/commands/admin/mute.lua +++ b/luascripts/wolfadmin/commands/admin/mute.lua @@ -62,7 +62,10 @@ function commandMute(clientId, command, victim, ...) elseif args[1] then duration = 600 reason = table.concat(args, " ") - elseif not auth.isPlayerAllowed(clientId, "8") then + elseif auth.isPlayerAllowed(clientId, auth.PERM_PERMA) then + duration = -1 + reason = "muted by admin" + else et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dmute usage: "..commands.getadmin("mute")["syntax"].."\";") return true @@ -72,7 +75,7 @@ function commandMute(clientId, command, victim, ...) et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dmute: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is already muted.\";") return true - elseif auth.isPlayerAllowed(cmdClient, "!") then + elseif auth.isPlayerAllowed(cmdClient, auth.PERM_IMMUNE) then et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dmute: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is immune to this command.\";") return true diff --git a/luascripts/wolfadmin/commands/admin/vmute.lua b/luascripts/wolfadmin/commands/admin/vmute.lua index 9f2b6dc..2e2e677 100644 --- a/luascripts/wolfadmin/commands/admin/vmute.lua +++ b/luascripts/wolfadmin/commands/admin/vmute.lua @@ -62,7 +62,10 @@ function commandVoiceMute(clientId, command, victim, ...) elseif args[1] then duration = 600 reason = table.concat(args, " ") - elseif not auth.isPlayerAllowed(clientId, "8") then + elseif auth.isPlayerAllowed(clientId, auth.PERM_PERMA) then + duration = -1 + reason = "muted by admin" + else et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dvmute usage: "..commands.getadmin("vmute")["syntax"].."\";") return true @@ -72,7 +75,7 @@ function commandVoiceMute(clientId, command, victim, ...) et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dvmute: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is already muted.\";") return true - elseif auth.isPlayerAllowed(cmdClient, "!") then + elseif auth.isPlayerAllowed(cmdClient, auth.PERM_IMMUNE) then et.trap_SendConsoleCommand(et.EXEC_APPEND, "csay "..clientId.." \"^dvmute: ^7"..et.gentity_get(cmdClient, "pers.netname").." ^9is immune to this command.\";") return true