Counter-Strike 2

Counter-Strike 2

View Stats:
X-Rayzzzz Jun 16, 2015 @ 12:22pm
What Language Does CSGO Command Console Use?
Im trying to have a button on my mouse do mute everyone in the game and say in the chat that im muted. This is what i have so far.

bind mouse4 "toggle voice_enable; say_team Muted"

Now this works all fine and dandy but I wanted to make it so when i'm muting my teammates it says muted and when I unmute them it says Unmuted.

The only way I can think of getting this done is to use a form of "if" commands to do something like this

bind mouse4 "toggle voice_enable; [if voice_enable=0 say_team Muted; if voice_enable=1 say_team Unmuted"

Of course this did not work and along with a lot of other different tries in different fromats. So I turn to the community and ask: How would one do this? or What language does the command console use{if it even has a language}? Thanks!
Last edited by X-Rayzzzz; Jun 16, 2015 @ 12:25pm
< >
Showing 1-13 of 13 comments
lyte Jun 16, 2015 @ 12:23pm 
engrish
Sam Jun 16, 2015 @ 12:25pm 
spàñoglë
MellowK Jun 16, 2015 @ 12:26pm 
If you're asking for a programming language, then the answer is none. It's just Valve making their own console commands to make server configuration easier for the public. Though I don't understand what your problem is, as the command to bind disable voice chat to a key is simply:

Bind key "toggle voice_enable"
Last edited by MellowK; Jun 16, 2015 @ 12:27pm
X-Rayzzzz Jun 16, 2015 @ 1:37pm 
Originally posted by MellowK:
If you're asking for a programming language, then the answer is none. It's just Valve making their own console commands to make server configuration easier for the public. Though I don't understand what your problem is, as the command to bind disable voice chat to a key is simply:

Bind key "toggle voice_enable"
It is what I was asking and like I said my command I was using was working fine I just wanted to make a variation. Thanks.
Last edited by X-Rayzzzz; Jun 16, 2015 @ 1:38pm
Jackson =D Jun 16, 2015 @ 1:40pm 
Originally posted by X-Rayz:
Originally posted by MellowK:
If you're asking for a programming language, then the answer is none. It's just Valve making their own console commands to make server configuration easier for the public. Though I don't understand what your problem is, as the command to bind disable voice chat to a key is simply:

Bind key "toggle voice_enable"
It is what I was asking and like I said my command I was usinf was working fine I just wanted to make a variation. Thanks.
I have very little experience with coding in Source, so this is probably incorrect, but worth a shot. I have a script that puts the console in Developer mode, which allows it to print text to the top left of my screen (in this case, the damage dealt to enemies). Perhaps this would allow the functionality you desire?
X-Rayzzzz Jun 16, 2015 @ 1:56pm 
Originally posted by Will sell lungs for Faceless Rex:
Originally posted by X-Rayz:
It is what I was asking and like I said my command I was usinf was working fine I just wanted to make a variation. Thanks.
I have very little experience with coding in Source, so this is probably incorrect, but worth a shot. I have a script that puts the console in Developer mode, which allows it to print text to the top left of my screen (in this case, the damage dealt to enemies). Perhaps this would allow the functionality you desire?
Not quite although that sounds really cool. Im more just looking for something that I can write custom code, but apparently that doesnt work because there is no language. Thanks to everyone in this thread!
Gen X Jun 16, 2015 @ 1:57pm 
source engine if im not mistaken is C++
honk Feb 27, 2020 @ 12:30am 
Just because I have solution, and because I want to appear smart for having a solution, im gonna ask, did you ever figure this out? And or does it matter anymore lol
flashbang Dec 17, 2020 @ 5:05am 
Hey buddy, you should try this :

alias "mute_cmd" "voice_enable 0; say_team Muted; bind mouse4 demute_cmd" alias "demute_cmd" "voice_enable 1; say_team Unmuted; bind mouse4 mute_cmd" demute_cmd

You can swap third line for mute_cmd, bind mouse4 demute_cmd or bind mouse4 mute_cmd.

And unfortunately there is no conditional commands in csgo console :'(

Hope this helps, though you might have found a solution in 5 years.
GOOST Sep 7, 2021 @ 1:21am 
Originally posted by 973120816734:
Hey buddy, you should try this :

alias "mute_cmd" "voice_enable 0; say_team Muted; bind mouse4 demute_cmd" alias "demute_cmd" "voice_enable 1; say_team Unmuted; bind mouse4 mute_cmd" demute_cmd

You can swap third line for mute_cmd, bind mouse4 demute_cmd or bind mouse4 mute_cmd.

And unfortunately there is no conditional commands in csgo console :'(

Hope this helps, though you might have found a solution in 5 years.


alias "+mute" "voice_enable 0; say_team Muted";alias "-mute" "voice_enable 1; say_team Unmuted";bind "mouse4" "+mute"
MuchoMacho Sep 7, 2021 @ 1:38am 
wow you are super smart mr necro
KAALI Nov 24, 2022 @ 9:56am 
bind m "voice_enable 0;say_team MUTED!"
bind n "voice_enable 1;say_team UNMUTED!"
( COPY PASTE ONE LINE AT A TIME)

THANK ME LATER!!!
Last edited by KAALI; Nov 24, 2022 @ 9:57am
P i d z a Apr 16, 2023 @ 10:22am 
Originally posted by GOOST:
alias "+mute" "voice_enable 0; say_team Muted";alias "-mute" "voice_enable 1; say_team Unmuted";bind "mouse4" "+mute"

No, this would mean muting only occurs when the button is pressed down, instead of toggling it.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Jun 16, 2015 @ 12:22pm
Posts: 13