AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] S2AProxy (Exclude players from the server player list) (https://forums.alliedmods.net/showthread.php?t=335736)

poggu 12-29-2021 05:42

[CS:GO] S2AProxy (Exclude players from the server player list)
 
2 Attachment(s)
S2AProxy

This plugin exposes an API for plugins to exclude players from the server browser player list. This could be used to hide admins in admin stealth plugins.

This plugin only intercepts packets coming from server to the client, not packets going to valve's master server, thus this data will only affect direct A2S queries. You cannot fake your player count in the internet tab in server browser!

Example code

PHP Code:

#include <S2AProxy>

public Action OnClientPlayerList(const char[] playerName)
{
    
PrintToServer("Username: %s"playerName);

    if(
StrEqual(playerName"adminname"))
        return 
Plugin_Handled// Exclude name from list

    
return Plugin_Continue;
}

public 
Action OnServerExcludeCount(int &excludeCount)
{
    
excludeCount 1// Number of players to exclude from the total player count
    
return Plugin_Changed;


Changelog

Update 2/4/2023
  • Updated gamedata

Update 10/23/2022
  • Updated gamedata

Update 1.0.1
  • Fixed a plugin breaking bug which wouldn't make the byte cursor skip the skipped player and wreck all the data

Requirements

_GamerX 12-29-2021 05:45

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Nice!

Ejziponken 12-29-2021 05:45

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Can it exclude bots?

poggu 12-29-2021 05:46

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Quote:

Originally Posted by Ejziponken (Post 2767188)
Can it exclude bots?

Yes it can exclude any name from the list including bots

Ejziponken 12-29-2021 05:49

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Quote:

Originally Posted by poggu (Post 2767189)
Yes it can exclude any name from the list including bots

Does it affect the players counts?

Like If I have 16/16 and exclude a player, would it show 15/16 or still 16/16?



Would this fix the bug with bots in the STEAM server browser? For every bot you add, the total slot of the server is reduced by the same amount.

So if u have 0/16 server slots, and you add a bot it would be 1/15 and then 2/14 etc.

Edit: Or is this bugged fixed? :S

poggu 12-29-2021 05:52

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Quote:

Originally Posted by Ejziponken (Post 2767190)
Does it affect the players counts?

Like If I have 16/16 and exclude a player, would it show 15/16 or still 16/16?

Would this fix the bug with bots in the STEAM server browser? For every bot you add, the total slot of the server is reduced by the same amount.

So if u have 0/16 server slots, and you add a bot it would be 1/15 and then 2/14 etc.

Nope this doesn't change the max players count. You could experiment with the code and try changing that as A2S_INFO includes the max players information
https://developer.valvesoftware.com/...esponse_Format

_GamerX 12-29-2021 06:02

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Quote:

Originally Posted by Ejziponken (Post 2767190)
Does it affect the players counts?

Like If I have 16/16 and exclude a player, would it show 15/16 or still 16/16?



Would this fix the bug with bots in the STEAM server browser? For every bot you add, the total slot of the server is reduced by the same amount.

So if u have 0/16 server slots, and you add a bot it would be 1/15 and then 2/14 etc.

Edit: Or is this bugged fixed? :S

This will affect only Favorites List no Global Brower

Minfas 12-29-2021 06:34

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Nice one!

Waterrkko 12-29-2021 07:13

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Pog

paulo_crash 01-06-2022 21:39

Re: [CS:GO] S2AProxy (Exclude players from the server player list)
 
Just to confirm then. With your plugin I can fix this plugin [CS:GO/CS:S] Admin Stealth

In this case everything works fine, but if you have any plugin, command that shows the list of players on the server. For example, !report from SourceBans shows the Admin in this list.

With your plugin would you be able to fix this, being admin the player is not displayed in this list?


All times are GMT -4. The time now is 07:46.

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