mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-04-07 10:19:05 +03:00
Added ADMIN_SUPER flag
This commit is contained in:
parent
7b3646a012
commit
8e2bfc9a3f
plugins/include
@ -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" */
|
||||
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user