View Single Post
Author Message
Austin
Senior Member
Join Date: Oct 2005
Old 09-15-2021 , 02:29   [CSGO] SetCommandFlags & ~FCVAR_CHEAT not working
Reply With Quote #1

I have the following plugin to remove the cheat requirement from certain commands.
This works in L4D2 for L4D2 commands, but not in CSGO.
?

PHP Code:
public OnMapStart()
{
    
FixCommand("noclip");
    
FixCommand("give");

    
FixCommand("bot_kick");
    
FixCommand("bot_stop");
    
FixCommand("bot_kill");

    
FixCommand("bot_quota");
    
FixCommand("bot_join_team");
    
FixCommand("mp_humanteam");
}

public 
FixCommand(String:cmd[50])
{
    new 
OrigFlags;
    
OrigFlags GetCommandFlags(cmd);
    
SetCommandFlags(cmdOrigFlags & ~FCVAR_CHEAT);


Last edited by Austin; 09-15-2021 at 02:30.
Austin is offline