Help with No Fly Zone

AxeCain

Member
This is to have a no fly zone over Skalisty Island (you can change postion to wherever you prefer.
Thanks to UrbanSkaters for posting http://opendayz.net/threads/request-player-id-zone-restriction-and-humanity-restriction-zone.8526/
Add to Mission.sqm
Code:
    class Sensors
    {   
                items=1;
                class Item0
        {
            position[]={13596.294,34.185841,3027.1653};
            a=850;
            b=550;
            angle=-150.02699;
            activationBy="ANY";
            repeating=1;
            age="UNKNOWN";
            name="noflyzone";
            expCond="(vehicle player) in thislist && (vehicle player) isKindOf ""Air""; ";
            expActiv="noflyzone = [] execVM ""fixes\noflyzone.sqf"";";
            expDesactiv="terminate noflyzone; titleText [""You have left the Restricted Area!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };
    };
};
noflyzone.sqf
Code:
// No Fly Zone
titleText ["You are entering restricted air space, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
sleep 15;
titleText ["You now have less than 10 seconds to leave (stay and die!)", "PLAIN DOWN", 3];
sleep 10;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 5;
titleText ["EMP!", "PLAIN DOWN", 3];
vehicle player setFuel 0;
Create a folder in the Root of you mission.pbo called "Fixes" and place noflyzone.sqf inside.
 
This... actually looks pretty cool ^^ If i just wanted it for some people, i would just make an if GetPlayerUID thing on the first line, right?
 
Back
Top