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

Is there OnPluginReloaded(name) and OnCommandRegistered()?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-16-2020 , 03:11   Is there OnPluginReloaded(name) and OnCommandRegistered()?
Reply With Quote #1

Hi,

is there forward of some hook to understand that:

- some other's plugin is reloaded (late loaded)

- some command is registered.

Thanks.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 02-16-2020 at 03:12.
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-18-2020 , 08:24   Re: Is there OnPluginReloaded(name) and OnCommandRegistered()?
Reply With Quote #2

There are no forwards like those that I'm aware of, but there are functions that can help you to either pinpoint specific plugins/commands or iterate through the plugins list/registered commands.

Refer to sourcemod.inc for more information about iterating through plugins: https://sm.alliedmods.net/new-api/sourcemod

Refer to console.inc for more information about iterating through registered commands: https://sm.alliedmods.net/new-api/co...ommandIterator
__________________
Psyk0tik is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-18-2020 , 08:26   Re: Is there OnPluginReloaded(name) and OnCommandRegistered()?
Reply With Quote #3

nah, waste CPU cycles. I need hook to keep the list of commands always up to date in my plugin.

Thanks for response.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 02-18-2020 , 08:33   Re: Is there OnPluginReloaded(name) and OnCommandRegistered()?
Reply With Quote #4

Yeah, a forward would definitely help in your case. Iterating through stuff every second is too much.
__________________
Psyk0tik 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 04:01.


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