Raised This Month: $ Target: $400
 0% 

How to change .sp (plugin) hook/trigger


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
M3Power
Member
Join Date: Apr 2017
Old 04-19-2017 , 13:06   How to change .sp (plugin) hook/trigger
Reply With Quote #1

Hello,

Could someone tell me how to change/trigger for opening a menu for the plugin I've attached down there.

Currently it is hooked/triggered to !models and /models but I'd like to change it to !skins and /skins
Been looking (CTRL + F) for !models or /models but couldn't find it.

So how to change hook/trigger in the plugins?

Kind regards.
Attached Files
File Type: sp Get Plugin or Get Source (sm_skinchooser.sp - 365 views - 49.3 KB)
M3Power is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 04-19-2017 , 13:27   Re: How to change .sp (plugin) hook/trigger
Reply With Quote #2

Why not asking in the plugin thread instead? https://forums.alliedmods.net/showthread.php?p=780243

BTW:
Quote:
// Create the model menu command
RegConsoleCmd("sm_models", Command_Model);
There it is..
__________________

Last edited by Cooky; 04-19-2017 at 13:31.
Cooky is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 04-19-2017 , 13:27   Re: How to change .sp (plugin) hook/trigger
Reply With Quote #3

Line 203
Code:
RegConsoleCmd("sm_models", Command_Model);
to
Code:
RegConsoleCmd("sm_skins", Command_Model);
__________________
free software
coding
shanapu is offline
M3Power
Member
Join Date: Apr 2017
Old 04-19-2017 , 14:32   Re: How to change .sp (plugin) hook/trigger
Reply With Quote #4

Alright. Thank you both. Will post in appropriate section next time.

Regards.
M3Power 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 09:27.


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