Reject Non-VIPs on connect (before they fully join)
Hello, i'd like to ask if someone know how to get player's flags to identify if they are VIPs or not, so non-vips can't join on the server, but let vips pass this restriction.
As i wrote on my plugin Reserved Slots and Client bypass Fix (you can find it here), there is a bug on CS:GO that players can join via console even if the server is full. Quote: Quote:
The following calls won't do it:
If someone can help me i'll be grateful, thanks in advance. |
Re: Reject Non-VIPs on connect (before they fully join)
Quote:
In old games, when you set -maxplayers before you launch server, you couldn't change that max player slot count later while server is running. (If we ignore that sourceTV slot +1). And when server is full, player couldn't make connection to server. In CSGO, -maxplayers not exist, it will use all 64 slot. CSGO can dynamically change "maxplayers" count through gamemodes.txt or gamemodes_server.txt in different game modes, while server is running. And will kick players who exceed that "maxplayer" size. For example, default maxplayers in different modes:
In co-op mode, server use those unused player slots for NPC (If I remember correctly). To stop CSGO changing "maxplayers" size, use launch parameter -maxplayers_override N to set static max player count. -However, players can still try make connection and perhaps join to server using console command, even server is full. But game will kick them out few seconds later when they are fully connected in server. |
Re: Reject Non-VIPs on connect (before they fully join)
there is no way to get their flags before OnClientPostAdminCheck forward due custom plugins database applying them here. but u can make an api system, which saves vips steamid in kv files then getting their flags on OnClientAuthorized forward.
|
All times are GMT -4. The time now is 04:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.