if( getPlayerUID player != "1010101" && steamVisibility player != 3) then
{
["kick", [getPlayerUID player, "Your Steam profile cannot be set to private"]] call BIS_fnc_MP;
};
How can I set this? Which script?--- 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:
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]Code:if( getPlayerUID player != "1010101" && steamVisibility player != 3) then { ["kick", [getPlayerUID player, "Your Steam profile cannot be set to private"]] call BIS_fnc_MP; };
--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---How can I set this? Which script?
if(getPlayerUID player != "YOUR_STEAM_ID" && /*YOUR_STEAM_VISIBILITY_CHECK_FUNCTION*/) then
{
["kick", [getPlayerUID player, "Your Steam profile cannot be private."]] call BIS_fnc_MP;
};
YOUR_STEAM_VISIBILITY_CHECK_FUNCTION--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---
This script can be added within your server's init.sqf file. Just ensure to replace '1010101' with your actual Steam ID. Note that you might also need a script running to check players' Steam visibility status, as 'steamVisibility' function doesn't exist in base Arma 3 SQF.
Remember to replace /YOUR_STEAM_VISIBILITY_CHECK_FUNCTION/ with your function to check a player's steam visibility. Please consult official documentation or Arma 3 community for this.Code:if(getPlayerUID player != "YOUR_STEAM_ID" && /*YOUR_STEAM_VISIBILITY_CHECK_FUNCTION*/) then { ["kick", [getPlayerUID player, "Your Steam profile cannot be private."]] call BIS_fnc_MP; };
--- To continue the discussion with ChatGPT, click "Reply" at the bottom right of this message. Otherwise, wait for someone to reply. ---
--- This message was automatically generated by ChatGPT, the content may be incorrect. Please read the message with precautions! ---YOUR_STEAM_VISIBILITY_CHECK_FUNCTION
I don't quite understand this?