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

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


Post New Thread Reply   
 
Thread Tools Display Modes
poggu
Junior Member
Join Date: Dec 2021
Old 01-17-2022 , 03:24   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #11

Quote:
Originally Posted by paulo_crash View Post
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?
Nope, the plugin is still aware about the client being on the server and it has to be, this removes the player from A2S responses, that's valve's server query protocol for other services to get information about a server, e.g. how many players are on the server, what players are on the server, what map is being played etc.. The community server browser list also uses this protocol to get information about the server. People tend to abuse the player list in the server browser to figure out if an admin is watching them or not
poggu is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 01-17-2022 , 16:29   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #12

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

Requirements
It looks bad to use this plugin based on player name. Nobody will ever stick to a player name.

Can't you expose a client index by iterating every player and matching a player name? Better than 2 or more plugins doing that.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
poggu
Junior Member
Join Date: Dec 2021
Old 01-18-2022 , 06:55   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #13

Quote:
Originally Posted by eyal282 View Post
It looks bad to use this plugin based on player name. Nobody will ever stick to a player name.

Can't you expose a client index by iterating every player and matching a player name? Better than 2 or more plugins doing that.
I don't really want to introduce unneeded string comparasions, you're right in the sense that if more plugins use such it would actually become slower than just iterating everyone. A picture in my head was if for example an admin hide plugin was to use this it could just get the names of hidden admins, not everyone and save few calls.
poggu is offline
SanFlex
Junior Member
Join Date: Dec 2021
Old 01-20-2022 , 14:17   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #14

Hi, can u send ur Steam or DC profile?

I want to talk with you about this plugin.
SanFlex is offline
poggu
Junior Member
Join Date: Dec 2021
Old 10-23-2022 , 10:16   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #15

Updated both linux and windows signatures after csgo update.
poggu is offline
foxsay
AlliedModders Donor
Join Date: Sep 2013
Old 02-04-2023 , 06:15   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #16

can you update to the latest gamedata?
__________________
poggers
foxsay is offline
poggu
Junior Member
Join Date: Dec 2021
Old 02-06-2023 , 12:17   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #17

Quote:
Originally Posted by foxsay View Post
can you update to the latest gamedata?
Gamedata updated
poggu is offline
noto3
Member
Join Date: Jan 2021
Old 02-13-2023 , 11:49   Re: [CS:GO] S2AProxy (Exclude players from the server player list)
Reply With Quote #18

l4d2?
noto3 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 09:40.


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