diff --git a/AdminCheats/scripting/AdminCheats.sp b/AdminCheats/scripting/AdminCheats.sp index 9d72abb..b0b3487 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; }