Raised This Month: $ Target: $400
 0% 

[ CSGO ] chat command > sound play


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 03-25-2015 , 23:02   [ CSGO ] chat command > sound play
Reply With Quote #1

Hello!
I'm here again with some ideas.

Can some one make a plugin like this:
When players chat some thing that exactly like what server owner set, it will play sound to all people ( or people around him even dead or alive)

For example:
If you chat: lol >> server create entity right at your place and play a laughing sound so everyone around your place can hear it

)

I don't know if it possible or not, just an idea through.
__________________
nguyenbaodanh is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-26-2015 , 09:03   Re: [ CSGO ] chat command > sound play
Reply With Quote #2

Hook the say command one of the two ways and just check what the person typed and if they typed something specific, play a sound already precached & added to downloads table to clients around that client. Pretty easy.

I shall build this within the next few days if nobody gets to it before me but there's a basis. It'd also be easier to add a config system so you can just set a keyvalue of strings like so:

Code:
"lol" "folder/sound.mp3" //sound/folder/sound.mp3
You should also add in limitations such as cooldowns, etc.

Last edited by Drixevel; 03-26-2015 at 09:03.
Drixevel is offline
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 03-26-2015 , 21:34   Re: [ CSGO ] chat command > sound play
Reply With Quote #3

Yea. Can you make it ?
I am not a coder .... and yes it should have cool down.
One question ... everybody in server will all hear the sound ? Or only people around at that moment?
__________________
nguyenbaodanh is offline
Pohearts
AlliedModders Donor
Join Date: Oct 2014
Location: Hong Kong
Old 03-27-2015 , 14:43   Re: [ CSGO ] chat command > sound play
Reply With Quote #4

Should be simple enough,
The way I do is to plugin like that is to hook the chat and use EmitSoundToAll..
Maybe there's better way to do so
__________________
HoursPlayed.net / Next Level Gaming network
Pohearts is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-27-2015 , 15:44   Re: [ CSGO ] chat command > sound play
Reply With Quote #5

Quote:
Originally Posted by nguyenbaodanh View Post
Yea. Can you make it ?
I am not a coder .... and yes it should have cool down.
One question ... everybody in server will all hear the sound ? Or only people around at that moment?
You can do global or vicinity.
Drixevel 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:55.


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