From 60be38608c29e481e9052047c7c67521d94d2e49 Mon Sep 17 00:00:00 2001 From: Dogan Date: Wed, 22 May 2019 20:23:41 +0200 Subject: [PATCH] AdminCheats: print noclip to chat --- AdminCheats/scripting/AdminCheats.sp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AdminCheats/scripting/AdminCheats.sp b/AdminCheats/scripting/AdminCheats.sp index c5f63fd2..9d72abba 100644 --- a/AdminCheats/scripting/AdminCheats.sp +++ b/AdminCheats/scripting/AdminCheats.sp @@ -106,6 +106,9 @@ public Action OnCheatCommand(int client, const char[] command, int argc) 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."); + return Plugin_Continue; }