View Single Post
Beatles
Senior Member
Join Date: Feb 2014
Old 09-26-2021 , 00:49   Re: [L4D] ChurchGuy Bug
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
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.
Thank you very much Silver, I will make the change, I appreciate your help
Beatles is offline