View Single Post
Author Message
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 07-03-2009 , 16:25   [L4D] Stripping CHEAT Flag of 'respawn'?
Reply With Quote #1

For the sm_respawn plugin...

Code:
            new String:command[] = "respawn";
            new flags = GetCommandFlags(command);
            SetCommandFlags(command, flags & ~FCVAR_CHEAT);
            FakeClientCommand(player_id,"respawn");
I tried stripping the CHEAT flag from respawn momentarily instead of setting sv_cheats silently to 1 (since that screws with so many things).

But it doesnt work. Why? In the Infected Bots Plugin its used just like this for z_spawn and "give health" ...


EDIT:

Well in this thread theres the exact same issue with no solution, so ... stuck with sv_cheats i suppose

Last edited by AtomicStryker; 07-03-2009 at 16:34.
AtomicStryker is offline