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))
|
if(!IsClientAuthorized(client) || !CheckCommandAccess(client, "", ADMFLAG_CHEATS))
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
|
|
||||||
LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command);
|
if(StrEqual(command, "noclip") && IsPlayerAlive(client))
|
||||||
if(StrEqual(command, "noclip") && GetClientTeam(client) > 1 && IsPlayerAlive(client) == true)
|
ShowActivity2(client, "[SM] ", "toggled noclip on himself.");
|
||||||
ShowActivity2(client, "[SM] ", "Toggled noclip on target himself.");
|
|
||||||
|
|
||||||
|
LogAction(client, -1, "\"%L\" used cheat command: \"%s\"", client, command);
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user