Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this work for cs2? #165

Closed
chrismcfee opened this issue Oct 19, 2023 · 10 comments
Closed

does this work for cs2? #165

chrismcfee opened this issue Oct 19, 2023 · 10 comments

Comments

@chrismcfee
Copy link

Hi, saw this works for cs:go. does it work for cs2?

@BaxAndrei
Copy link
Contributor

It's not the same thing?

@chrismcfee
Copy link
Author

It's not the same thing?

same app id in steam, but different game...

@BaxAndrei
Copy link
Contributor

Did you try and it didn't work? It should be the same

@chrismcfee
Copy link
Author

Did you try and it didn't work? It should be the same

I have not tried, no, so I will try this and get back to you.

@asdfxD
Copy link

asdfxD commented Oct 25, 2023

does not work correctly in cs2, does not show player names for example. pls fix.

@xLeviNx
Copy link

xLeviNx commented Oct 25, 2023

does not work correctly in cs2, does not show player names for example. pls fix.

There is no method for cs2 to show player names at the moment. CS2 itself needs to update show players method

@chrismcfee
Copy link
Author

seems to function decently besides the player names thing mentioned earlier

@ZekyTheWolf
Copy link
Contributor

Works in around half way... You can get status, you can get name of server, you can get current player num / max players... Maybe some cvars... But it will stop on players, it will get them but no name (if i remember from tests, only connected player time)...

So, until we get something official from valve (like official server distribution) we can only have this.

tltneon added a commit that referenced this issue Oct 30, 2023
Added connect link to GTAC and MAFIAC protocols #167
Player names now showing as *unknown* for CS2 #165
Code for Iframe now showing even if userbars is disabled
@tltneon
Copy link
Owner

tltneon commented Jan 5, 2024

@asdfxD @cmcsun Try to change server cvar "host_players_show" in server.cfg to value "2" if you want to show player names.
https://developer.valvesoftware.com/wiki/Server_queries#A2S_PLAYER

@asdfxD
Copy link

asdfxD commented Jan 5, 2024

does not work in cs2 cause "host_players_show" does not exists in cs2.

@tltneon tltneon closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants