Raised This Month: $ Target: $400
 0% 

[ANY] sm_cvarlist (v1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
step
Senior Member
Join Date: May 2010
Plugin ID:
1888
Plugin Version:
1.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    18 
    Plugin Description:
    An alternative to cvarlist command.
    Old 08-16-2010 , 23:04   [ANY] sm_cvarlist (v1.1)
    Reply With Quote #1

    sm_cvarlist


    Description

    This plugin lists any cvars/cmds using the cvarlist command formatting.


    Commands
    • sm_cvarlist <search strings> [/listed] or [/unlisted] [/defaults] [/file]

    Usage examples
    • sm_cvarlist - Lists all cvars/cmds.
    • sm_cvarlist /listed - Lists all visible cvars/cmds.
    • sm_cvarlist /unlisted - Lists all hidden cvars/cmds.
    • sm_cvarlist /defaults - Lists all cvars/cmds with their default values.
    • sm_cvarlist /file - Saves the list to a txt file.
    • sm_cvarlist "cheat" - Lists all cvars/cmds that have the "cheat" flag.
    • sm_cvarlist bot player - Lists anything that contains "bot" or "player" either in the name, value, flag, or description.

    Thanks
    • thekod and Seather, for coding the original plugins;
    • Everyone who helped me in the topics I created in the Scripting section;
    • ProdigySim for some tips.

    Changelog

    19th October 2012 - v1.1
    • Added /defaults option.
    17th August 2010 - v1.0
    • Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_cvarlist.sp - 2833 views - 11.6 KB)

    Last edited by step; 10-19-2012 at 18:54. Reason: v1.1
    step is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 08-17-2010 , 01:48   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #2

    This looks handy
    __________________
    DarthNinja is offline
    gtamike
    Member
    Join Date: Aug 2009
    Location: UK
    Old 08-17-2010 , 12:40   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #3

    Yes looks to be useful
    __________________
    gtamike is offline
    step
    Senior Member
    Join Date: May 2010
    Old 08-17-2010 , 13:36   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #4

    I forgot to uncomment one line in the GenerateFilePath function, replacing the .sp file.
    step is offline
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 08-17-2010 , 21:33   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #5

    Will this do all cvars or just the ones created by sourcemod and its plugins?
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    step
    Senior Member
    Join Date: May 2010
    Old 08-17-2010 , 23:02   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #6

    Quote:
    Originally Posted by Xp3r7 View Post
    Will this do all cvars or just the ones created by sourcemod and its plugins?
    It will list all cvars/cmds, even hidden ones.
    step is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 09-13-2010 , 10:01   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #7

    PHP Code:
    L 09/13/2010 14:40:55: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
    L 09/13/2010 14:40:55: [SMDisplaying call stack trace for plugin "sm_cvarlist.smx":
    L 09/13/2010 14:40:55: [SM]   [0]  Line 143, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::GetCvars()
    L 09/13/2010 14:40:55: [SM]   [1]  Line 92, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::Command_Cvarlist() 
    whene I typ sm_cvarlist in my console
    Can all of my admins to this? so is this based on a certain flag?
    Groger is offline
    step
    Senior Member
    Join Date: May 2010
    Old 09-13-2010 , 11:02   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #8

    Quote:
    Originally Posted by Groger View Post
    PHP Code:
    L 09/13/2010 14:40:55: [SMNative "CloseHandle" reportedHandle 0 is invalid (error 4)
    L 09/13/2010 14:40:55: [SMDisplaying call stack trace for plugin "sm_cvarlist.smx":
    L 09/13/2010 14:40:55: [SM]   [0]  Line 143, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::GetCvars()
    L 09/13/2010 14:40:55: [SM]   [1]  Line 92, /home/groups/alliedmodders/forums/files/7/9/0/8/0/71789.attach::Command_Cvarlist() 
    whene I typ sm_cvarlist in my console
    Can all of my admins to this? so is this based on a certain flag?
    It's based on the ADMFLAG_RCON, since you can see the rcon_password value with this command.

    About the error, I have no idea why it's happening, I've got to check it out.
    step is offline
    step
    Senior Member
    Join Date: May 2010
    Old 09-13-2010 , 11:12   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #9

    It's fixed now, I was trying to close an handle that is not created when you use sm_cvarlist without arguments.
    step is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 09-13-2010 , 12:44   Re: [ANY] sm_cvarlist (v1.0)
    Reply With Quote #10

    It works now, alltought I dont see why I could use this. But still, nice work!
    Groger 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 12:12.


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