AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Cheat commands that require sv_cheats 1 (https://forums.alliedmods.net/showthread.php?t=105027)

President Skroob 10-08-2009 16:49

Re: Cheat commands without sv_cheats 1
 
No, KAC blocks it from being enabled on the server as well.

/President Skroob

HareN 10-19-2009 18:52

Re: Cheat commands without sv_cheats 1
 
Hey!

Sweet plugin - thanks alot for it!

just woundering if it's possible to enable sv_infinite_ammo 1 without trace from client?
(Hate reloading)

Maxunit 10-24-2009 01:05

Re: Cheat commands without sv_cheats 1
 
Hi there,

I just downloaded your plugin, but it won't work on both the latest stable Sourcemod and latest snapshop version.

That's the error I get:

Code:

] sm_cheat sv_cheats 1
L 10/24/2009 - 07:03:53: [SM] Native "FakeClientCommand" reported: Client index 0 is invalid
L 10/24/2009 - 07:03:53: [SM] Displaying call stack trace for plugin "sm_cheat.smx":
L 10/24/2009 - 07:03:53: [SM]  [0]  Line 38, /home/groups/alliedmodders/forums/files/5/3/3/0/9/51133.attach::PerformCheatCommand()
L 10/24/2009 - 07:03:53: [SM]  [1]  Line 27, /home/groups/alliedmodders/forums/files/5/3/3/0/9/51133.attach::Command_cheat_command()

It is all gibberish to me...what am I doing wrong or what might be the problem?

Greetings,

Maxunit

EHG 10-26-2009 13:44

Re: Cheat commands without sv_cheats 1
 
You cannot use this to set a cvar. This plugin is for running a command that requires sv_cheats without the need to enable it.

egor1908 11-01-2009 10:34

Re: Cheat commands without sv_cheats 1
 
Quote:

Originally Posted by Maxunit (Post 970476)
...

To change CVars, use sm_cvar sv_cheats 1.

tfphoenix 12-13-2009 19:36

Re: Cheat commands without sv_cheats 1
 
Is this incompatible with Left 4 Dead 2?

Console:
Code:

sm_cheat prop_dynamic_create props_misc/triage_tent.mdl
Can't use cheats now; please exit to main menu and start your own listen server with "map mapname" so that you could enable cheats.

I get that message with every command. I was hoping this would work because sm_cvar sv_cheats 1 doesn't even work on l4d2.

I am running sourcemod on a listen server if that matters.

EHG 12-15-2009 11:02

Re: Cheat commands without sv_cheats 1
 
Left 4 Dead 2 forces sv_cheats 0 while the server is reserved with a lobby.
Since this plugin relies on being able to change sv_cheats it is not working.

You must unreserve the server from the lobby in order to use cheats.

AtomicStryker 12-16-2009 10:08

Re: Cheat commands without sv_cheats 1
 
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);



triggerman 12-16-2009 19:33

Re: Cheat commands without sv_cheats 1
 
when i use the command, any cheat protected cvar are reset back to default.

hommayudi 12-17-2009 10:44

Re: Cheat commands without sv_cheats 1
 
work in l4d2???


All times are GMT -4. The time now is 13:20.

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