Jump to content
  • 0

Base Shield 1.0.6


ukmajortom

Question

6 answers to this question

Recommended Posts

  • 0
if ((getPlayerUID player) in ["0","0"]) then {
titleText ["Hello Sir.  Welcome home.", "PLAIN DOWN", 1];
} else {
titleText ["This base belongs to ****, if you do not leave you will die.", "PLAIN DOWN", 2];
sleep 5;
titleText ["You have 45 seconds to get out", "PLAIN DOWN", 2];
sleep 10;
titleText ["30 secs left, run Forrest run", "PLAIN DOWN", 2];
sleep 10;
titleText ["You don't listen very well. We aren't kidding!", "PLAIN DOWN", 2];
sleep 10;
titleText ["10 seconds left!", "PLAIN DOWN", 2];
sleep 10;
titleText ["Bye Falicia", "PLAIN DOWN", 2];
sleep 5;
player setPos [getPos player select 0, getPos player select 1, (getPos player select 2) +1000]; //this puts them 1000ft in the air
//player setDamage 1; //otherwise this to killthem and comment out or delete line above, or do both and kill them in the air for lolz

};

put that in an sqf, i have it in custom/dome.sqf

then in mission file inside the array for class sensors add the following and also adjust the "items=#;" line to account for the new item.

        class Item6
        {
            position[]={0,0,0};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="adminbase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""custom\dome.sqf"";";
            expDesactiv="terminate adminbase; titleText [""Bye, have a good time!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
           
            };
        }

 

Link to comment
Share on other sites

  • 0

Followed what you said, but i must be missing something

    class Sensors
    {
        items=7;
#define TRGDEF a=100;b=100;activationBy="WEST";repeating=1;interruptable=1;age="UNKNOWN";class Effects{};
        class Item0
        {
            position[]={6325,304,7807};
            TRGDEF
            name="zonestary";
            expCond="(player distance zonestary) < 100;";
            expActiv="[""trader city Stary"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Stary"",true,""leave""] call player_traderCity;";
        };
        class Item1
        {
            position[]={4063,365,11664};
            TRGDEF
            name="zonebash";
            expCond="(player distance zonebash) < 100;";
            expActiv="[""trader city Bash"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Bash"",true,""leave""] call player_traderCity;";
        };
        class Item2
        {
            position[]={11447,317,11364};
            TRGDEF
            name="zoneklen";
            expCond="(player distance zoneklen) < 100;";
            expActiv="[""trader city Klen"",true,""enter""] call player_traderCity;";
            expDesactiv="[""trader city Klen"",true,""leave""] call player_traderCity;";
        };
        class Item3
        {
            position[]={1606,289,7803};
            TRGDEF
            name="zonebandit";
            expCond="(player distance zonebandit) < 100;";
            expActiv="[""Bandit Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Bandit Trader"",false,""leave""] call player_traderCity;";
        };
        class Item4
        {
            position[]={12944,210,12766};
            TRGDEF
            name="zonehero";
            expCond="(player distance zonehero) < 100;";
            expActiv="[""Hero Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Hero Trader"",false,""leave""] call player_traderCity;";
        };
        class Item5
        {
            position[]={12060,158,12638};
            TRGDEF
            name="zoneaircraft";
            expCond="(player distance zoneaircraft) < 100;";
            expActiv="[""Aircraft Trader"",false,""enter""] call player_traderCity;";
            expDesactiv="[""Aircraft Trader"",false,""leave""] call player_traderCity;";
        };
        class Item6
        {
            position[]={6505.27,14131.3,0.00149539};
            a=100;
            b=100;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="adminbase";
            expCond="(vehicle player) in thislist;";
            expActiv="adminbase = [] execVM ""custom\dome.sqf"";";
            expDesactiv="terminate adminbase; titleText [""Bye, have a good time!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
               };
            };
    };
};

Link to comment
Share on other sites

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
  • Discord

×
×
  • Create New...