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

CSGO “teammenu” command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dj6230
Junior Member
Join Date: Dec 2010
Old 04-01-2020 , 19:15   CSGO “teammenu” command
Reply With Quote #1

Hi, I can’t find any info on how to proceed with the “teammenu” command, so this has to be the place to ask

I want to make an simple bind that instantly switches to specified team.

When I type “teammenu spectate” in console I instantly go to spectate, but I can’t find the command for either Terrorist or Counter-Terrorist.

Does anyone here know what it could be?



Edit: I see I might have posted in the wrong section, as this is a basic CSGO question?

Last edited by dj6230; 04-01-2020 at 19:23. Reason: Wrong Section?
dj6230 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-01-2020 , 21:15   Re: CSGO “teammenu” command
Reply With Quote #2

Well I don't know for CSGO since I don't play, but for L4D2 I use the command "jointeam 2" for example,

Maybe try to use "teammenu 2" or even "jointeam 2"

Btw someone more expert may help you if this not works.
__________________
Marttt is offline
dj6230
Junior Member
Join Date: Dec 2010
Old 04-02-2020 , 08:44   Re: CSGO “teammenu” command
Reply With Quote #3

Thank you, but that only works for CS Source. The teammenu equals to jointeam, and since spectate works, it’s only the value for CT or T I need. I’ve tried t, ct, 1, 2 and even menuselect in combination.
dj6230 is offline
dj6230
Junior Member
Join Date: Dec 2010
Old 04-02-2020 , 08:54   Re: CSGO “teammenu” command
Reply With Quote #4

Also does anyone know the command for changing the radar player icon? The color you can choose on your profile in Lobby.
dj6230 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-02-2020 , 09:25   Re: CSGO “teammenu” command
Reply With Quote #5

*edit
Does this topic have anything to do SourceMod scripting ?

@dj6230
You need do more testing...

PHP Code:
public void OnPluginStart()
{
    
AddCommandListener(listencommands"");
}

public 
Action listencommands(int client, const char[] commandint argc)
{

    
char buffer[PLATFORM_MAX_PATH];
    
GetCmdArgString(buffersizeof(buffer));
    
    if(
client == -|| client != && !IsClientInGame(client))
    {
        
PrintToServer("Client ? [%i]: %s %s"clientcommandbuffer);
    }
    else
    {
        
PrintToServer("Client %N [%i]: %s %s"clientclientcommandbuffer);
    }


    return 
Plugin_Continue;

Attached Thumbnails
Click image for larger version

Name:	test.png
Views:	113
Size:	47.5 KB
ID:	180500  
__________________
Do not Private Message @me

Last edited by Bacardi; 04-02-2020 at 11:07. Reason: little fix, on server start client index could be -1
Bacardi 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 11:38.


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