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

Solved Detect .wav Played (spk)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mahbodsr
Member
Join Date: Jun 2016
Old 06-05-2020 , 09:29   Detect .wav Played (spk)
Reply With Quote #1

anyway to detect when spk blabla.wav sends to client?

Last edited by mahbodsr; 06-07-2020 at 14:54.
mahbodsr is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-05-2020 , 14:48   Re: Detect .wav Played (spk)
Reply With Quote #2

Quote:
Originally Posted by mahbodsr View Post
anyway to detect when spk blabla.wav sends to client?
Can you be more specific, what you mean by "detect". What do you want this plugin to do?
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-05-2020 , 21:18   Re: Detect .wav Played (spk)
Reply With Quote #3

The easiest method is to edit the plugin that sends the command. Otherwise, it's unlikely that it's possible without editing the client_cmd() function in AMX Mod X.
__________________
fysiks is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-07-2020 , 20:49   Re: Detect .wav Played (spk)
Reply With Quote #4

Any news on this thread?
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
mahbodsr
Member
Join Date: Jun 2016
Old 06-08-2020 , 03:15   Re: Detect .wav Played (spk)
Reply With Quote #5

Quote:
Originally Posted by supertrio17 View Post
Any news on this thread?
i think spk is just a client-side command , so i cant hook it
for this , i should just stop sending client_cmd()...
mahbodsr is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 06-08-2020 , 03:20   Re: Detect .wav Played (spk)
Reply With Quote #6

If you register spk in register_clcmd and get the parameters in the function you are executing, you should be able to see which file will be played.
__________________
GitHub
SteamWishlist

六四天安門事件

Last edited by +ARUKARI-; 06-09-2020 at 06:20. Reason: couldn't.
+ARUKARI- is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-08-2020 , 09:43   Re: Detect .wav Played (spk)
Reply With Quote #7

Can you tell us which plugin do you want to detect, it's easy to modify that plugin that is sending spk .mp3. Give us your .sma or something. Or at least explain what you want to do.
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-08-2020 , 21:43   Re: Detect .wav Played (spk)
Reply With Quote #8

@supertrio17, it's completely unnecessary to bump someone else's thread (and it's against the rules). Also, this is scripting help section where the requester is attempting to write/edit a plugin on their own.

Based on his response, it sounds like he's got the info he needs. If he doesn't, he can ask another question.

Quote:
Originally Posted by +ARUKARI- View Post
If you register spk in register_clcmd and get the parameters in the function you are executing, you should be able to see which file will be played.
Did you test that theory?
__________________
fysiks is offline
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 06-08-2020 , 22:42   Re: Detect .wav Played (spk)
Reply With Quote #9

I asked if there was any news because I needed that exact same thing for my plugin...
__________________
Contact! || Discord:
Mr_Boopsy_#2066
supertrio17 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-08-2020 , 22:43   Re: Detect .wav Played (spk)
Reply With Quote #10

Then edit your plugin.
__________________
fysiks 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 08:08.


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