From a2a8634bb215cee51e06bd02c255572fbf001bf4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 10 Jan 2008 23:03:29 +0000 Subject: [PATCH] fixed amb1382 - sm_cvar from console rte'd --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401850 --- plugins/basecommands.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/basecommands.sp b/plugins/basecommands.sp index a33f2c68..f3222982 100644 --- a/plugins/basecommands.sp +++ b/plugins/basecommands.sp @@ -296,7 +296,7 @@ public Action:Command_Cvar(client, args) } new bool:allowed = false; - new client_flags = GetUserFlagBits(client); + new client_flags = client == 0 ? ADMFLAG_ROOT : GetUserFlagBits(client); if (client_flags & ADMFLAG_ROOT) {