Dome assistance

Does anyone know a way to add another file to include a list of admins into my dome files?

I have several donator domes on my server, and with admins constantly rotating. I thought it would be a great thing to have a file where you can keep a list of admins separate of the actual dome owners. I have tried the #include "admin.sqf" but it overwrites the players already listed in the dome.sqf. Can I add a callcompile in there somewhere? Any suggestions would be great. Bellow is a copy of the code I'm currently using. Thanks

Code:
// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
if ((getPlayerUID player) in ["####" , "####" , "####"]) exitWith {
waitUntil {time > 70};
titleText [format ["Welcome home, %1", name player], "PLAIN DOWN"];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind?!? GET OUT!!", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh?!?", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 4;
titleText ["Good night...", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;

//Location of base

/*
Added Users
***UID's***

*/
 

Vampire

OpenDayZ Rockstar!
In this line, have only the players who are supposed to have access:
Code:
if ((getPlayerUID player) in ["####" , "####" , "####"]) exitWith {
Right above it, add this line:
Code:
if ((getPlayerUID player) in domeAdminsList) exitWith {titleText [format ["Welcome Admin."], "PLAIN DOWN"];};
Then in your init.sqf add this line somewhere before your dome script.
Code:
domeAdminsList = ["23423","34324","34234"];
Of course then add your admin IDs to the array and you should be good.

If you get any errors, check your RPT.
 
I can confirm that this does work, and saves me a bunch of time. Now if I could just make the code use the UID list in my AH it would be even easier lol
 

FallingSheep

OpenDayZ Lord!
I can confirm that this does work, and saves me a bunch of time. Now if I could just make the code use the UID list in my AH it would be even easier lol
Does your ah admin list use a global var? Eg. Adminlist = blah blah

If so you can use

If player Uid in adminlist

Not the correct code but should point you in right direction
 
I am using infistar AH. There is an admin list in the AHconfig.sqf, but they are in the dayz_server/init/AHconfig.sqf. I think that I could call it out by adding that directory?
 
Well I tried various ways to call the AH admin list, not sure how to do it... I know that the one bellow isn't right, but I'm thinking that it should be something like that?

_SuperLevel_List = call compile preprocessFileLineNumbers "\z\addons\dayz_server\init\AHconfig.sqf";

The AHconfig uses
_SuperLevel_List = ["123456","654321"]

But then there is also an AH.sqf that #include "AHconfig.sqf", that is where I get lost. I know I need both in order to define the _SuperLevel_List, just not able to figure out how...
 
Last edited:
This is the newest code for the domes I'm using
Code:
/* Location of base 10158.2,0.074,14667.6 GPS:?? ?? MUST HAVE if creating a new dome */
/* Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome */

if ((getPlayerUID player) in _SuperLevel_List) exitWith {titleText [format ["Welcome Admin, %1", name player], "PLAIN DOWN"];};
if ((getPlayerUID player) in ["123456"]) exitWith {
waitUntil {time > 70};
titleText [format ["Welcome home, %1", name player], "PLAIN DOWN"];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind?!? GET OUT!!", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh?!?", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 4;
titleText ["Good night...", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;


/**
Added Users **PLEASE use this so that we know who is in there**
***NAME******UID's*** Example Tim "123456"
    Tim "123456"
*****String*****
"123456"
*/
 
Top