Admin Dome Help..1 Works 2 Dont

FoRcE72

Member
Hi,
I was trying to get the admin domes working again, I had one working but when i added the 2nd nothing works..

My Mission Code
Code:
    class Sensors
{
items=2;
class Item0
{
position[]={1395.72,0.002,4490.09};
a=150;
b=150;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="AdminBase = [] execVM ""admindomes\admindome.sqf"";";
expDesactiv="terminate AdminBase; titleText [""You've left the AdminBase"", ""PLAIN DOWN"", 3];";
class Effects
};
class Item1
{
position[]={14132.1,0.001,2756.59};
a=50;
b=80;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="KelsBase";
expCond="(vehicle player) in thislist;";
expActiv="KelsBase = [] execVM ""admindomes\kelsdome.sqf"";";
expDesactiv="terminate KelsBase; titleText [""You've left the KelsBase"", ""PLAIN DOWN"", 3];";
class Effects
};
};
};
};

admindome.sqf

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 ["12345678"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3];
};
// 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 5;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

kelsdome.sqf

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 ["12345678","12345678"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3];
};
// 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 5;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

The player UID's I changed for posting purposes they are correct in the actual file. Any help would be appreciated.
 
Hi,

Not sure if you fixed this problem or not, but I believe your problem is a fairly simple one.

Here, try this:

class Sensors
{
items=2;
class Item0
{
position[]={1395.72,0.002,4490.09};
a=150;
b=150;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="AdminBase = [] execVM ""admindomes\admindome.sqf"";";
expDesactiv="terminate AdminBase; titleText [""You've left the AdminBase"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};

class Item1
{
position[]={14132.1,0.001,2756.59};
a=50;
b=80;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="KelsBase";
expCond="(vehicle player) in thislist;";
expActiv="KelsBase = [] execVM ""admindomes\kelsdome.sqf"";";
expDesactiv="terminate KelsBase; titleText [""You've left the KelsBase"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};
 
After Every "Dome" section you do need:

Code:
expDesactiv="terminate AdminBase; titleText [""You've left the AdminBase"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};  <======== Need
 
class Item1
{
position[]={14132.1,0.001,2756.59};

Also of very importance make sure to increment the Items # at the top to reflect the amount of "Domes" you have added. Keep in mind it starts at "0" so if you have 10 "Domes" the Items = 11.
Code:
class Sensors
{
  items=39; <==== I Have 38 actual Domes (38 + 1)
    class Item0
:)
 
Back
Top