View Single Post
djromero
Senior Member
Join Date: Dec 2008
Location: Maracaibo, Venezuela
Old 02-03-2009 , 05:15   Re: [L4D] HideHUDOnVomit (Blind Luck)
Reply With Quote #2

Just rewrite the following function like this:

Code:
StripAndExecuteClientCommand(client, const String:command[], param) {
    
    // Removes sv_cheat flag from command
    new flags = GetCommandFlags(command);
    SetCommandFlags(command, flags & ~FCVAR_CHEAT);
    
    ClientCommand(client, "%s %d", command, param)
    
    // Restore sv_cheat flag on command
    SetCommandFlags(command, flags);

}
Now it won't require sv_cheats.

I took the liberty of posting the fixed plugin:
Attached Files
File Type: sp Get Plugin or Get Source (blindluck.sp - 2699 views - 3.5 KB)
__________________
David Romero


djromero is offline