Thread: HP Left
View Single Post
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 07-10-2007 , 13:11   Re: HP Left
Reply With Quote #5

Don't use @. You'll have problems on any server running basechat. @ has traditionally been reserved as an alias to commands related to chat features.

If you do what Bugs is suggesting, you'll basicly just make the command sm_hp. You won't use "say" or "say_team" at all.

You don't have to worry about chat or if there quotes. If you make "sm_hp", SourceMod will AUTOMAGICKALLY create !hp and /hp for you and take out the quotes.

Also, if you change it to sm_hp, you should switch from "PrintToChat" to "ReplyToCommand"

ReplyToCommand automaticly switches from "PrintToConsole" to "PrintToChat", depending on if the user typed it in console or chat.
__________________
I'm a blast from the past!
ferret is offline