AdminCheats remove dumb logging and fix lagswitch lmao
This commit is contained in:
parent
e8cd97b9ed
commit
4a2cecfa47
@ -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.");
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user