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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
poggu
Junior Member
Join Date: Dec 2021
Plugin ID:
7903
Plugin Version:
1.0.1
Plugin Category:
Technical/Development
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Plugin that exposes an API for plugins to exclude players from the player list
    Old 12-29-2021 , 05:42   [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #1

    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
    Attached Files
    File Type: zip S2AProxy.zip (12.7 KB, 128 views)
    File Type: txt s2aproxy.games.txt (601 Bytes, 100 views)

    Last edited by poggu; 02-04-2023 at 07:36. Reason: Updated gamedata
    poggu is offline
    _GamerX
    AlliedModders Donor
    Join Date: Jun 2011
    Location: Fun Server
    Old 12-29-2021 , 05:45   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #2

    Nice!
    __________________
    _GamerX is offline
    Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 12-29-2021 , 05:45   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #3

    Can it exclude bots?
    Ejziponken is offline
    poggu
    Junior Member
    Join Date: Dec 2021
    Old 12-29-2021 , 05:46   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #4

    Quote:
    Originally Posted by Ejziponken View Post
    Can it exclude bots?
    Yes it can exclude any name from the list including bots
    poggu is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 12-29-2021 , 05:49   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #5

    Quote:
    Originally Posted by poggu View Post
    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

    Last edited by Ejziponken; 12-29-2021 at 05:52.
    Ejziponken is offline
    poggu
    Junior Member
    Join Date: Dec 2021
    Old 12-29-2021 , 05:52   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #6

    Quote:
    Originally Posted by Ejziponken View Post
    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

    Last edited by poggu; 12-29-2021 at 05:53.
    poggu is offline
    _GamerX
    AlliedModders Donor
    Join Date: Jun 2011
    Location: Fun Server
    Old 12-29-2021 , 06:02   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #7

    Quote:
    Originally Posted by Ejziponken View Post
    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
    __________________

    Last edited by _GamerX; 12-29-2021 at 06:18.
    _GamerX is offline
    Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
    Minfas
    Member
    Join Date: Dec 2017
    Old 12-29-2021 , 06:34   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #8

    Nice one!
    __________________
    Founder of LEXTEN CZ/SK JailBreak
    Minfas is offline
    Waterrkko
    Junior Member
    Join Date: Nov 2018
    Location: Slovak Republic
    Old 12-29-2021 , 07:13   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #9

    Pog
    __________________
    My Steam
    My Github
    Discord: Water#7636
    Waterrkko is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 01-06-2022 , 21:39   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
    Reply With Quote #10

    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?
    paulo_crash is offline
    Reply


    Thread Tools
    Display Modes

    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 08:09.


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