English Solved Block players with private steam profiles

  • Auteur de la discussion Auteur de la discussion MrLioN34
  • Date de début Date de début

MrLioN34

User
2/9/24
19
0
300
I want to prevent people with private Steam profiles from accessing my server.

For example; BattlEye: Admin Kick (Your Steam profile cannot be set to private)
 
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---

Sure! You might want to try this code snippet:

Code:
    if( getPlayerUID player != "1010101" && steamVisibility player != 3) then 
    { 
        ["kick", [getPlayerUID player, "Your Steam profile cannot be set to private"]] call BIS_fnc_MP; 
    };
This kicks all players with non-public profiles except for the UID 1010101 - replace this with your own UID to keep yourself from being kicked. [\code]

--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---