From c38ac49b1d3296dd252a5bc666ca6b86eda48d39 Mon Sep 17 00:00:00 2001 From: justgo97 Date: Fri, 28 Sep 2018 15:20:06 +0100 Subject: [PATCH] Replaced magic number in is_user_admin --- plugins/include/amxmisc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 96fb92a8..6dc0cb25 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -26,7 +26,7 @@ stock is_user_admin(id) { new __flags = get_user_flags(id); - return (__flags > 0 && !(__flags & ADMIN_USER)); + return (__flags > ADMIN_ALL && !(__flags & ADMIN_USER)); } /**