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

Cs Go hook voice


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blodhblaka
Member
Join Date: Jan 2015
Old 02-27-2015 , 18:51   Cs Go hook voice
Reply With Quote #1

Hello, I would like to hook voice (run command when client is speaking) (run command when he has doe speaking) Please help

Can I do it? How?!
blodhblaka is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 02-27-2015 , 19:00   Re: Cs Go hook voice
Reply With Quote #2

There's a plugin that adds some forwards to make this fairly easy: https://forums.alliedmods.net/showthread.php?t=245384
__________________
splewis is offline
blodhblaka
Member
Join Date: Jan 2015
Old 02-27-2015 , 19:12   Re: Cs Go hook voice
Reply With Quote #3

Can't even compile the dhooks test (
blodhblaka is offline
blodhblaka
Member
Join Date: Jan 2015
Old 02-27-2015 , 19:16   Re: Cs Go hook voice
Reply With Quote #4

What should I do, please
blodhblaka is offline
neatek
AlliedModders Donor
Join Date: Jul 2010
Location: Russia
Old 02-28-2015 , 21:12   Re: Cs Go hook voice
Reply With Quote #5

Quote:
Originally Posted by blodhblaka View Post
What should I do, please
You need to start learn English, it is main thing what you should do.
By the way, i start thinking that you russian, because most of russians are really not smart people.

About DHooks.
All examples written for CS:S, L4D2, and TF.
"This example plugin is inside the zip and is only for cs:s and l4d2"
"Here is a quick example written for TF2"


Analysis.
"Current builds supported are CS:S, CS:GO, OBV, L4D/2" @dhooks
okay, its support CS:GO, so you need to install this extension.

then look at this plugin.
we can see "my new version of this plugin that have CS:GO support", so we YAHOOOO! its working for CS:GO.

PHP Code:
// just use this includes. dhooks and voiceannounce_ex
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <dhooks>
#include <voiceannounce_ex>

// Hook for ClientSpeaking, using voiceannounce_ex
public OnClientSpeakingEx(int client) {
    
// YAHOO.. we can mute this player!
    // or something other...


Good luck, my friend.
__________________

Last edited by neatek; 02-28-2015 at 21:18. Reason: sourcemod 1.7 syntax -> int client
neatek is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-28-2015 , 21:25   Re: Cs Go hook voice
Reply With Quote #6

Quote:
Originally Posted by neatek View Post
You need to start learn English, it is main thing what you should do.
By the way, i start thinking that you russian, because most of russians are really not smart people.

About DHooks.
All examples written for CS:S, L4D2, and TF.
"This example plugin is inside the zip and is only for cs:s and l4d2"
"Here is a quick example written for TF2"


Analysis.
"Current builds supported are CS:S, CS:GO, OBV, L4D/2" @dhooks
okay, its support CS:GO, so you need to install this extension.

then look at this plugin.
we can see "my new version of this plugin that have CS:GO support", so we YAHOOOO! its working for CS:GO.

PHP Code:
// just use this includes. dhooks and voiceannounce_ex
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <dhooks>
#include <voiceannounce_ex>

// Hook for ClientSpeaking, using voiceannounce_ex
public OnClientSpeakingEx(int client) {
    
// YAHOO.. we can mute this player!
    // or something other...


Good luck, my friend.
Very well explained, I am thinking in add it to my plugin
Spoiler
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-28-2015 at 21:26.
Franc1sco is offline
Send a message via MSN to Franc1sco
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 03-09-2015 , 06:26   Re: Cs Go hook voice
Reply With Quote #7

Quote:
Originally Posted by blodhblaka View Post
Hello, I would like to hook voice (run command when client is speaking) (run command when he has doe speaking) Please help

Can I do it? How?!
Jestli se snažíš udělat repráček ne hráči tak máš bohužel smůlu.. Bohužel ale dhooks nebo voicehook schazoval server ) Takže je zbytečné něco programovat co už jsem dávno dělal Ale i tak GL
ESK0 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 13:56.


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