AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Get Cmds (https://forums.alliedmods.net/showthread.php?t=280162)

3V0Lu710N 03-09-2016 17:21

[ANY] Get Cmds
 
1 Attachment(s)
Description:

This plugin will dump all commands that are created/used by the plugins currently on the server into <cmds.txt> in the /addons/sourcemod/ directory

Commands:

sm_getcmds <number of plugins> (ROOT access required)

The contents of the text file are replaced each time the command is used.

Installation:

Place getcmds.smx in addons/sourcemod/plugins

Grey83 03-10-2016 09:55

Re: [ANY] Get Cmds
 
plugin creates empty file

3V0Lu710N 03-10-2016 11:41

Re: [ANY] Get Cmds
 
Quote:

Originally Posted by Grey83 (Post 2401252)
plugin creates empty file

This only happens when you run the command from the server console or use rcon, try using the command in game, should work

Grey83 03-10-2016 11:47

Quote:

Originally Posted by 3V0Lu710N (Post 2401277)
This only happens when you run the command from the server console or use rcon, try using the command in game, should work

Maybe in this case it makes sense to add these lines ?
PHP Code:

    if(!client)
    {
        
ReplyToCommand(client"[SM] %t""Command is in-game only");
        return 
Plugin_Handled;
    } 

in
PHP Code:

public Action Get_Cmds(clientargs

and
PHP Code:

    LoadTranslations("common.phrases"); 

in
PHP Code:

public void OnPluginStart() 


3V0Lu710N 03-10-2016 11:48

Re: [ANY] Get Cmds
 
Quote:

Originally Posted by Grey83 (Post 2401279)
Maybe in this case it makes sense to add these lines ?
PHP Code:

    if(!client)
    {
        
ReplyToCommand(client"[SM] %t""Command is in-game only");
        return 
Plugin_Handled;
    } 

in
PHP Code:

public Action Get_Cmds(clientargs


Added, thank you

Mitchell 03-10-2016 12:12

Re: [ANY] Get Cmds
 
Why not just use the command iterator?
Hell even sm_searchcmd "" prints out all commands from all plugins.

Grey83 03-10-2016 16:35

Re: [ANY] Get Cmds
 
My version of this plugin


All times are GMT -4. The time now is 02:32.

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