Quote:
Originally Posted by Silvers
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