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

Solved [ANY] Plugin who?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Elite Biker
Member
Join Date: Nov 2020
Location: The 13 Blessings
Old 03-13-2023 , 12:46   [ANY] Plugin who?
Reply With Quote #1

Is there a plugin that tells you in console of what command is linked to a plugin that he was created from? Like

I shoot a command, such as like "!tp" but i have 2 plugins that use "!tp" and i wonder if there is a plugin that tells you what .smx files use those command?

If someone knows anything about it. It could really help, Having an amount of plugins is really a problem but it gives alot of joy of experience to fix the problems we don't know.
__________________
*Bop*

Last edited by Elite Biker; 03-14-2023 at 21:01. Reason: Thanks for Grey83!
Elite Biker is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-13-2023 , 13:26   Re: [ANY] Plugin who?
Reply With Quote #2

You can find plugin onli if this command registred by RegAdminCmd() or RegConsoleCmd().
If a plugin intercepts chat messages (by AddCommandListener() or forward OnClientSayCommand()), then you can only find the corresponding plugin by disabling the plugins one by one.

You can find the commands registered behind the plugin by typing "sm cmds <plugin #>" into the server console:
PHP Code:
sm cmds 2
[SMListing commands for: Admin Help
  
[Name]            [Type]   [Help]
  
sm_help           console      Displays SourceMod commands and descriptions
  sm_searchcmd      console      Searches SourceMod commands 
__________________

Last edited by Grey83; 03-13-2023 at 13:26.
Grey83 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 03-13-2023 , 15:29   Re: [ANY] Plugin who?
Reply With Quote #3

The method mentioned above by Grey83 where you use 'sm plugins list' and 'sm cmds #' works well when you only have a few plugins. However, it becomes very tedious when you have a lot of plugins.

A possible alternative might be to use the plugin '[ANY] SourceMod Plugin Command Info (1.1)' by Sheepdude. I should note that I don't know if the plugin still works, and the author hasn't logged on in 10 years. Here's a link if you're interested: https://forums.alliedmods.net/showthread.php?p=1846062

Last edited by PC Gamer; 03-13-2023 at 17:06.
PC Gamer is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 03-13-2023 , 17:20   Re: [ANY] Plugin who?
Reply With Quote #4

Needed SM1.10+ to compile
PHP Code:
sm_find_cmd
[SMUsagesm_find_cmd <console command name>

sm_find_cmd sm_find_cmd

[SM'sm_find_cmd' is registered to:
  
"Find command" (file1234\sm_find_cmd.smx)
  -= 
1 matches found =- 
Attached Files
File Type: sp Get Plugin or Get Source (sm_find_cmd.sp - 67 views - 1.8 KB)
__________________
Grey83 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 03-13-2023 , 23:56   Re: [ANY] Plugin who?
Reply With Quote #5

Works great Grey83! Thanks for sharing.
PC Gamer is offline
Elite Biker
Member
Join Date: Nov 2020
Location: The 13 Blessings
Old 03-14-2023 , 20:59   Re: [ANY] Plugin who?
Reply With Quote #6

Quote:
Originally Posted by Grey83 View Post
Needed SM1.10+ to compile
PHP Code:
sm_find_cmd[SMUsagesm_find_cmd <console command name>sm_find_cmd sm_find_cmd[SM'sm_find_cmd' is registered to:  "Find command" (file1234\sm_find_cmd.smx)  -= 1 matches found =- 
Omg! Thank you so much!! Thank you for the support!
__________________
*Bop*
Elite Biker 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:32.


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