diff --git a/AdminCheats/scripting/AdminCheats.sp b/AdminCheats/scripting/AdminCheats.sp index b0b34873..75f88bb7 100644 --- a/AdminCheats/scripting/AdminCheats.sp +++ b/AdminCheats/scripting/AdminCheats.sp @@ -108,7 +108,9 @@ public Action OnCheatCommand(int client, const char[] command, int argc) if(StrEqual(command, "noclip") && IsPlayerAlive(client)) ShowActivity2(client, "[SM] ", "toggled noclip on himself."); - LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command); + if(!StrEqual(command, "give")) + LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command); + return Plugin_Continue; } @@ -121,9 +123,11 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3 return Plugin_Continue; if(!IsClientAuthorized(client) || !CheckCommandAccess(client, "", ADMFLAG_CHEATS)) - return Plugin_Handled; + { + impulse = 0; + return Plugin_Changed; + } - LogAction(client, -1, "\"%L\" used cheat command: \"impulse %d\"", client, impulse); return Plugin_Continue; }