From 8e2bfc9a3f85abea8356c08c60fabc9ec32c7177 Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Sat, 10 Feb 2018 15:22:03 +0100 Subject: [PATCH] Added ADMIN_SUPER flag --- plugins/include/amxconst.inc | 1 + plugins/include/amxmisc.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/include/amxconst.inc b/plugins/include/amxconst.inc index 1e7ac379..aed24ca6 100755 --- a/plugins/include/amxconst.inc +++ b/plugins/include/amxconst.inc @@ -94,6 +94,7 @@ public stock const Float:NULL_VECTOR[3]; #define ADMIN_LEVEL_H (1<<19) /* flag "t" */ #define ADMIN_MENU (1<<20) /* flag "u" */ #define ADMIN_BAN_TEMP (1<<21) /* flag "v" */ +#define ADMIN_SUPER (1<<23) /* flag "x" */ #define ADMIN_ADMIN (1<<24) /* flag "y" */ #define ADMIN_USER (1<<25) /* flag "z" */ diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 772b7f00..bfaf5f9a 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -167,7 +167,7 @@ stock cmd_target(id, const arg[], flags = CMDTARGET_OBEY_IMMUNITY) } if (flags & CMDTARGET_OBEY_IMMUNITY) { - if ((get_user_flags(player) & ADMIN_IMMUNITY) && ((flags & CMDTARGET_ALLOW_SELF) ? (id != player) : true)) + if ((get_user_flags(player) & ADMIN_IMMUNITY) && !(get_user_flags(id) & ADMIN_SUPER) && ((flags & CMDTARGET_ALLOW_SELF) ? (id != player) : true)) { new imname[MAX_NAME_LENGTH]; get_user_name(player, imname, charsmax(imname));