AdminCheats: Organize last commit slightly.

This commit is contained in:
zaCade 2019-05-22 20:38:06 +02:00
parent 60be38608c
commit 7c8147a50c

View File

@ -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;
}