Raised This Month: $ Target: $400
 0% 

Cheat commands that require sv_cheats 1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 12-16-2009 , 10:08   Re: Cheat commands without sv_cheats 1
Reply With Quote #19

Compatible with KAC (if root userlevel cheating is on) and L4D2, though not usable on every command

PHP Code:
CheatCommand(client, const String:command[], const String:arguments[]="")
{
    if (!
client) return;
    new 
admindata GetUserFlagBits(client);
    
SetUserFlagBits(clientADMFLAG_ROOT);
    new 
flags GetCommandFlags(command);
    
SetCommandFlags(commandflags & ~FCVAR_CHEAT);
    
FakeClientCommand(client"%s %s"commandarguments);
    
SetCommandFlags(commandflags);
    
SetUserFlagBits(clientadmindata);

AtomicStryker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode