Do any of you know how to Reserve slots? on a3wasteland like a squad for example of 5 reserve them for admins etc by there uid i have this code but not sure how to get it working i know i put player uid in there and add it into initplayerlocal.sqf but i'm not sure where i link the code to a player ai ingame so make it reserved.
while {true} do
{
private ["_reserved_units", "_reserved_uids", "_uid"];
waitUntil {!isNull player};
waitUntil {(vehicle player) == player};
waitUntil {(getPlayerUID player) != ""};
// Variable Name of the Player Character to be restricted. //
_reserved_units = [Reserved01];
// The player UID is a 17 digit number found in the profile tab. //
_reserved_uids =
[
"UIDXXXXXXXXXXXXXX"/* Add Player Name Here */,
"UIDXXXXXXXXXXXXXX"/* Add Player Name Here */,
"UIDXXXXXXXXXXXXXX"/* Add Player Name Here */
];
// Stores the connecting player's UID //
_uid = getPlayerUID player;
if ((player in _reserved_units)&& !(_uid in _reserved_uids)) then
{
titleText ["", "BLACK OUT"];
disableUserInput true;
hint "You are in a reserved slot! You will be kicked to the lobby in 15 seconds!";
sleep 5;
hint "You are in a reserved slot! You will be kicked to the lobby in 10 seconds!";
sleep 5;
hint "You are in a reserved slot! You will be kicked to the lobby in 5 seconds!";
sleep 5;
titleText ["", "BLACK IN"];
disableUserInput false;
failMission "end1";
};
};