Raised This Month: $32 Target: $400
 8% 

Admin Cheats


Post New Thread Reply   
 
Thread Tools Display Modes
Splittr
New Member
Join Date: Jul 2008
Old 12-13-2008 , 15:15   Re: Admin Cheats
Reply With Quote #21

Quote:
Originally Posted by devicenull View Post
It's possible (and fairly trivial) to remove the cheat flag from cvars. The same code in this plugin that removes it from commands can be applied to cvars directly. The problem with this is there is no *simple* way of only allowing admins to execute them. The best way around this would be a whitelist of cvars to remove the cheat flag from. At the moment I don't have the ability to write/test this plugin, so it's not something I can do.
I have a suggestion, allthough I'm not sure if it's easy/valid but anyways:

how about removing cheat flag from all cvars and allowing everyone to execute cvars, but kick a player if he enters a cheat command in console?

I've seen a simillar private plugin. It kicks a player when he tries to access an admin command of that plugin.
Splittr is offline
wgooch
Member
Join Date: Dec 2008
Old 12-23-2008 , 13:57   Re: Admin Cheats
Reply With Quote #22

I have a problem with this plugin, I'm running a listen server for Left 4 Dead. When someone runs a command in the console, it will think that I ran the command. So if I have admin privileges everyone can use the console, but if I don't no one can use it. I'm very new to sourcemod all together and I apologize if this is a stupid post.
wgooch is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 12-23-2008 , 17:38   Re: Admin Cheats
Reply With Quote #23

Quote:
Originally Posted by wgooch View Post
I have a problem with this plugin, I'm running a listen server for Left 4 Dead....
Oh dear god in heaven. Say it aint so!?!?! There are going to be many issues with a listen server.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 12-23-2008 , 20:40   Re: Admin Cheats
Reply With Quote #24

Quote:
Originally Posted by Antithasys View Post
Oh dear god in heaven. Say it aint so!?!?! There are going to be many issues with a listen server.
Exactly. Don't run listen servers. I haven't tested with them, and I really wouldn't recommend doing what you are attempting to do.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
sniperkills
Senior Member
Join Date: Apr 2008
Old 12-24-2008 , 21:11   Re: Admin Cheats
Reply With Quote #25

hi i am haveing the same issue i own 4 DOD:S servers i have all permition to every thing 99:z still wont let me enter any comand sm_admin_cheats_level "z" <sv_cheats 0> nothing
__________________
{ÄÕD}ۣۜ$ήiþëяҚillş
sniperkills is offline
Dristol
Junior Member
Join Date: Dec 2008
Old 12-29-2008 , 03:24   Re: Admin Cheats
Reply With Quote #26

Any chance this could be modified to support the *exec* command?

OR -- alternatively as others have suggested, could we get this set up so that we can enable cvars in addition to commands?

Many thanks!
Dristol is offline
Matthias Vance
Senior Member
Join Date: Jan 2009
Old 01-05-2009 , 22:08   Re: Admin Cheats
Reply With Quote #27

As for the CVARs, you do not need to remove the FCVAR_CHEAT flag from it.
I tested it with L4D, you can just do SetConVarString(hCVAR, sValue).

Kind regards,

Matthias Vance
Matthias Vance is offline
420sphincter
Member
Join Date: Jan 2009
Old 01-06-2009 , 16:52   Re: Admin Cheats
Reply With Quote #28

I dont understand what i am spose to configure to make this plugin work, help would be much appreciated
__________________
420sphincter is offline
420sphincter
Member
Join Date: Jan 2009
Old 01-06-2009 , 20:10   Re: Admin Cheats
Reply With Quote #29

OK, so i got it to work finally, woo hoo, sad part about it is .... i thought that this plugin would make it so i could run my cfgs that require sv_cheats 1 to be on, turn outs they dont unless ofcourse im wrong? which i really hope i am as ive had a streak with that lately.
__________________

Last edited by 420sphincter; 01-07-2009 at 21:53. Reason: Got it to wrok
420sphincter is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 01-08-2009 , 20:26   Re: Admin Cheats
Reply With Quote #30

Regarding cheat commands: The sm_cvar command will already let you change the value of cheat commands, so it's not necessary for me to write it again.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Reply


Thread Tools
Display Modes

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 10:53.


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