Raised This Month: $51 Target: $400
 12% 

Admin Exec


Post New Thread Reply   
 
Thread Tools Display Modes
Author
voiderest
Junior Member
Join Date: Jan 2009
Plugin ID:
746
Plugin Version:
0.9
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Runs cfg files like the 'exec' command however it does it without needed sv_cheats on, NOTE: only works on cvars.
    Old 01-31-2009 , 20:17   Admin Exec
    Reply With Quote #1

    Works just like 'exec' with any cfg file you could normal use 'exec' on. It will set all cvars without needing sv_cheats set to 1. It does not however work on cmds. You will need to have basecommands.smx in your plugins, it comes with sourcemod so unless you deleted it you should have it. This is because it uses sm_cvar when it runs through the cfg.

    I wrote this for L4D so people can run cfg files for 'gamemodes' or 'mods' without needing sv_cheats, but it should work with any source game.
    Attached Files
    File Type: sp Get Plugin or Get Source (admin_exec.sp - 1987 views - 1.8 KB)
    File Type: smx admin_exec.smx (2.9 KB, 775 views)

    Last edited by voiderest; 01-31-2009 at 20:19. Reason: attachments...
    voiderest is offline
    Liam
    SourceMod Developer
    Join Date: Jan 2008
    Location: Atlanta, GA
    Old 02-01-2009 , 00:54   Re: Admin Exec
    Reply With Quote #2

    What's wrong with sm_rcon exec <file>?
    __________________
    Please don't PM me for support of my plugins. If you have a question, reply in the appropriate thread.

    Weapon Restrictions w/ Warmup
    High Ping Kicker - Lite Edition
    AFK Manager
    Liam is offline
    -pk-
    Member
    Join Date: Feb 2009
    Old 02-01-2009 , 01:56   Re: Admin Exec
    Reply With Quote #3

    Or put sm_cvar infront of all commands that require sv_cheats in your cfg. Works fine for listenservers too. The only issue when doing this is that it can spam the console.

    Last edited by -pk-; 02-01-2009 at 09:00.
    -pk- is offline
    voiderest
    Junior Member
    Join Date: Jan 2009
    Old 02-01-2009 , 18:51   Re: Admin Exec
    Reply With Quote #4

    Quote:
    What's wrong with sm_rcon exec <file>?
    For cheat commands it would need sv_cheats 1 some place in there.

    Quote:
    Or put sm_cvar infront of all commands
    Yeah, thats pretty much all this does so far.
    voiderest is offline
    Reply



    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 01:39.


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