View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-25-2021 , 07:04   Re: [L4D] ChurchGuy Bug
Reply With Quote #5

PHP Code:
    new flags GetCommandFlags("ent_fire");
    
SetCommandFlags("ent_fire"flags & ~FCVAR_CHEAT);
    
FakeClientCommand(client"ent_fire button_safedoor_PANIC kill");            
    
SetCommandFlags("ent_fire"flags|FCVAR_CHEAT); 
Should be:

PHP Code:
    new flags GetCommandFlags("ent_fire");
    
SetCommandFlags("ent_fire"flags & ~FCVAR_CHEAT);
    
FakeClientCommand(client"ent_fire button_safedoor_PANIC kill");            
    
SetCommandFlags("ent_fire"flags); 
Set the flags back to what they were without adding FCVAR_CHEAT because some servers might completely remove that cheat flag and you just added it when it shouldn't be there. I've seen this being spread around too much, it's not the right way.
__________________
Silvers is offline