AdminCheats: Organize last commit slightly.
This commit is contained in:
parent
60be38608c
commit
7c8147a50c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user