From e85a6d280f20e6dcf3cccb92c63045370a0fbe5a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Jun 2007 06:31:46 +0000 Subject: [PATCH] root can use sv_cheats now --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40935 --- plugins/basecommands.sp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/basecommands.sp b/plugins/basecommands.sp index 10349593..7185c7d7 100644 --- a/plugins/basecommands.sp +++ b/plugins/basecommands.sp @@ -422,7 +422,8 @@ public Action:Command_Cvar(client, args) /* Do a check for the cheat cvar */ else if (StrEqual(cvarname, "sv_cheats")) { - if (GetUserFlagBits(client) & ADMFLAG_CHEATS) + if (GetUserFlagBits(client) & ADMFLAG_CHEATS + || GetUserFlagBits(client) & ADMFLAG_ROOT) { allowed = true; }