Raised This Month: $ Target: $400
 0% 

TF2 Request: sm_play via chat triggers.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xomp
BANNED
Join Date: Jul 2008
Old 07-26-2010 , 18:31   TF2 Request: sm_play via chat triggers.
Reply With Quote #1

I'd like a plugin that made use of the built-in sm_play (sounds) plugin in conjunction with certain chat triggers.

For instance, I don't run !rtd on my server nor do I accept !premier memberships so I'd like to have it where when those commands are typed via team chat it will play the Engineer's No sound file. I need a way to have "!rtd" in text chat play "sm_play vo\Engineer_no01.wav"

Also, if it were able to have a config file where you can tweak it for other things/sounds that would be great!

Thanks Pally
xomp is offline
Send a message via Skype™ to xomp
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-26-2010 , 19:32   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #2

Try this plugin.

Triggers
http://forums.alliedmods.net/showthread.php?t=67098
Sreaper is offline
xomp
BANNED
Join Date: Jul 2008
Old 07-26-2010 , 19:43   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #3

Quote:
Originally Posted by Sreaper View Post
Awesome! Although I cannot seem to get it to work for my requested use. In the commands.txt I put this line:

Code:
!rtd C sm_play vo\Engineer_dominationengineer01.wav
If I'm reading the instructions correct that's how you do it.

Quote:
Commands are entered using the format "<command> <flags> <replacement>"
xomp is offline
Send a message via Skype™ to xomp
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-26-2010 , 20:33   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #4

Quote:
Originally Posted by xomp View Post
Awesome! Although I cannot seem to get it to work for my requested use. In the commands.txt I put this line:

Code:
!rtd C sm_play vo\Engineer_dominationengineer01.wav
If I'm reading the instructions correct that's how you do it.

Code:
!rtd Rf{*} sm_play %n vo/Engineer_dominationengineer01.wav
I haven't tested that but it should work. Being as it's set to target the name of the person who typed it, it may not work for some people depending on what their name is. I tried using the %s to target the steam id but that doesn't work for me for some reason)

Iif you don't want to see people typing !rtd in the chat than just set it as Rdf{*} instead of just the Rf{*}

Also you can refresh the config file for that plugin and it will make the changes in real time, just type triggers_reload in console.

Last edited by Sreaper; 07-26-2010 at 20:40.
Sreaper is offline
xomp
BANNED
Join Date: Jul 2008
Old 07-26-2010 , 21:26   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #5

Thanks, I tried the above command and got this on my alt account.


(TEAM) gimp : !rtd
[SM] You do not have access to this command.

Naturally I'd want this to affect anyone who issues the command (admin or otherwise). Is that possible with this plugin?

Thanks
xomp is offline
Send a message via Skype™ to xomp
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-26-2010 , 21:39   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #6

Quote:
Originally Posted by xomp View Post
Thanks, I tried the above command and got this on my alt account.


(TEAM) gimp : !rtd
[SM] You do not have access to this command.

Naturally I'd want this to affect anyone who issues the command (admin or otherwise). Is that possible with this plugin?

Thanks
Yeah the way I gave it, it should play the sound to the person who typed !rtd is it at least working for you? The {*} should have made it work on everyone. I'll try it out myself and get back to you. 1 sec

EDIT: Use this, I tested it myself, works for everyone (non-admins included). Remember it may not work for specific people depending on their name, they may need to change their name if nothing happens at all when that person types !rtd

Code:
!rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer01.wav"
Also, the "d" I put is making it so you don't have to see "Player: !rtd" every second lol you can remove the lowercase d if you prefer seeing people type that.

Last edited by Sreaper; 07-26-2010 at 21:57.
Sreaper is offline
xomp
BANNED
Join Date: Jul 2008
Old 07-26-2010 , 22:05   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #7

Quote:
Originally Posted by Sreaper View Post
Yeah the way I gave it, it should play the sound to the person who typed !rtd is it at least working for you? The {*} should have made it work on everyone. I'll try it out myself and get back to you. 1 sec

EDIT: Use this, I tested it myself, works for everyone (non-admins included). Remember it may not work for specific people depending on their name, they may need to change their name if nothing happens at all when that person types !rtd

Code:
!rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer01.wav"
Also, the "d" I put is making it so you don't have to see "Player: !rtd" every second lol you can remove the lowercase d if you prefer seeing people type that.
Ah this did the trick! Although not as perfect as I'd like but get's the job done for at least !rtd (roughly). I have ran into a few of the ppl not hearing anything and think maybe because of their name.

Are you able to use more than one command? I thought I read somewhere that it can only be used for one command
xomp is offline
Send a message via Skype™ to xomp
Sreaper
髪を用心
Join Date: Nov 2009
Old 07-26-2010 , 22:11   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #8

Quote:
Originally Posted by xomp View Post
Are you able to use more than one command? I thought I read somewhere that it can only be used for one command
You can use as many triggers as you want, just keep adding more lines

Code:
!rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer01.wav"
/rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer02.wav"
!noclipme Rdf{*} sm_noclip %n
etc

Last edited by Sreaper; 07-26-2010 at 22:14.
Sreaper is offline
xomp
BANNED
Join Date: Jul 2008
Old 07-26-2010 , 22:54   Re: TF2 Request: sm_play via chat triggers.
Reply With Quote #9

Quote:
Originally Posted by Sreaper View Post
You can use as many triggers as you want, just keep adding more lines

Code:
!rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer01.wav"
/rtd Rdf{*} sm_play %n "vo/engineer_dominationengineer02.wav"
!noclipme Rdf{*} sm_noclip %n
etc
Thanks Pally!
xomp is offline
Send a message via Skype™ to xomp
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 03:43.


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