Player ID zone restriction problems

hey guys so i am trying to put a restriction zone over my admin base and we all keep getting stuck in wait for host,

the reason i have started a new thread so when i get it working i will make it into a proper tutorial


here is the codes im using

adminbase.sqf

Code:
// Base Owners
if ((getPlayerUID player) in ["********" ]) exitWith {
titleText ["You are cleared to stay...  Welcome back.", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["This base is protected by a deadly nerve gas agent.. LEAVE NOW!", "PLAIN DOWN", 3];
sleep 5;
titleText ["Your presence here has been logged!", "PLAIN DOWN", 3];
sleep 5;
titleText ["The NERVE GAS will kill you in less than 20 seconds..!", "PLAIN DOWN", 3];
sleep 10;
titleText ["You now have less than 10 seconds to leave (stay and die!)", "PLAIN DOWN", 3];
sleep 10;
titleText ["GAS! GAS! GAS!", "PLAIN DOWN", 3];
sleep 3;
player setDamage 1;


mission.sqm here is the whole of my sensors and they are below vehicles and above markers

Code:
class Sensors
    {
        items=1;
        class Item0
        {
            position[]={14215.376,136.84589,14137.79};
            a=350;
            b=350;
            interruptable=1;
            age="UNKNOWN";
            class Effects
            {
            };
        class Item1
        {
            position[]={14215.376,136.84589,14137.79};
            a=400;
            b=400;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };

could someone please help me fix this problem
 
Change your sensors code to this and see if it works, looks like you might have been missing a closing bracket and items=1; should have been items=2; if you need both sensors.

Code:
class Sensors
    {
        items=1;
        class Item0
        {
            position[]={14215.376,136.84589,14137.79};
            a=400;
            b=400;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };
 
so after trying this i realized i didn't need the first part of my sensors that was just to get the coordinates so i removed it and i am still stuck on wait for host this is the sensors now

Code:
class Sensors
    {
        items=1;
        class Item0
        {
            position[]={14215.376,136.84589,14137.79};
            a=400;
            b=400;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="AdminBase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""Scripts\adminbase.sqf"";";
            expDesactiv="terminate adminbase; titleText [""You have left the Admin Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };

someone please help if you want to talk in person heres my teamspeak 3 server ip: ts.onlygameservers.com:10003

or skype: wba08
 
Problem Solved. Watch your brackets guys! This guy was missing a bracket at the end of all his code right before his outros.
 
Back
Top