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

Triggers (!)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 02-07-2010 , 21:21   Triggers (!)
Reply With Quote #1

I'm pretty new to SourceMod, just had a quick question. When I register a command, will a trigger be generated even if I use a custom prefix for the command? For example, "sm_blah" would create the trigger "!blah" right? Would "custom_blah" create the same trigger, or would it be "!custom_blah" instead?
Spunky is offline
Send a message via AIM to Spunky
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 02-07-2010 , 21:35   Re: Triggers (!)
Reply With Quote #2

It would be custom_blah. The special handling only applies to things beginning with sm_.
Fyren is offline
Antithasys
Moderator
Join Date: Apr 2008
Old 02-08-2010 , 12:36   Re: Triggers (!)
Reply With Quote #3

To elaborate more.... sm_blah will be !blah or /blah in chat.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 02-08-2010 , 14:18   Re: Triggers (!)
Reply With Quote #4

Thanks Fyren, that's what I needed to know.
Spunky is offline
Send a message via AIM to Spunky
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 17:11.


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