From 7c8147a50c7174e5c7c9fe3ce65dbe6a50b6aa54 Mon Sep 17 00:00:00 2001 From: zaCade Date: Wed, 22 May 2019 20:38:06 +0200 Subject: [PATCH] AdminCheats: Organize last commit slightly. --- AdminCheats/scripting/AdminCheats.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AdminCheats/scripting/AdminCheats.sp b/AdminCheats/scripting/AdminCheats.sp index 9d72abba..b0b34873 100644 --- a/AdminCheats/scripting/AdminCheats.sp +++ b/AdminCheats/scripting/AdminCheats.sp @@ -105,10 +105,10 @@ public Action OnCheatCommand(int client, const char[] command, int argc) if(!IsClientAuthorized(client) || !CheckCommandAccess(client, "", ADMFLAG_CHEATS)) return Plugin_Handled; - LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command); - if(StrEqual(command, "noclip") && GetClientTeam(client) > 1 && IsPlayerAlive(client) == true) - ShowActivity2(client, "[SM] ", "Toggled noclip on target himself."); + if(StrEqual(command, "noclip") && IsPlayerAlive(client)) + ShowActivity2(client, "[SM] ", "toggled noclip on himself."); + LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command); return Plugin_Continue; }