Suranos

Admin/Reserved slots on LINUX

1 post in this topic

Hello everyone!

I have been mad at work lately trying to get an Exile server online, As I near the end and prepare to publicly launch it I am running into one issue, I am unable to find a working script that Whitelists certain positions on the server. This is one script I found but am unable to get it to function with Exile... any ideas?

 

/* 
ReservedSlot.sqf by Kahna

Initially call this script in the Init.sqf and then include it in whatever script you use to respawn players,
otherwise the respawned player will not have the Reserved Slot script applied to it.

*/

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";
   	};  
 };

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.