[Request] Player ID zone restriction and humanity restriction zone

hey guy i have put the scripts in:
// 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;

class Sensors
{
items=1;
class Item0
{
position[]={14215.376,136.84589,14137.79};
a=350;
b=350;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="starsbase";
expCond="(vehicle player) in thislist;";
expActiv="adminbase = [] execVM ""adminbase.sqf"";";
expDesactiv="terminate adminbase; titleText [""You have left the admin Base!"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};
};


none of this is working people can join the server still but nothing is happening when people go into the base what am i donig wrong please help me
 
I have been able to get the messages "you are entering a restricted area" and "you are leaving the admin base" to show up, but can't seem to get it to call the abminbase.sqf into use. I'm on my cell phone at the moment so I can't provede any code snippets. Should I be adding any code anywhere else other than in the mission.sqm and adminabase.sqf? New to editing code for dayz, but not entirely new to editing code. Any help would be appreciated. And kudos to the contributors in this forum. Have been able to learn a lot from you guys.

Edit:
Got mine to work finally. Was a { in the wrong place. Thanks. Now on to making base area zed free. Any suggestions would be appreciated.
 
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.
 
Hi All,

Great work. I was wondering if anyone had done a variation on this idea. Humanity restriction is one, but I'm looking at trying to determine the "skin" that the player is wearing.

Currently I have AI on my server and I wish to use a trigger to create an area that the military AI (that are usually friendly) fire apon intruders into their base - however if the player is wearing either the sniper or camo clothing the soldiers will not trigger.

I pretty much have the trigger/zone and logic to make them hostile - I'm trying to find out how to read a players current skin/model.

Thanks in advance.
 
I keep getting stuck on "wait for host". I'm trying to add a restriction zone for my admin base, for a total of 4 admins. I'm also trying to add a restriction zone for each donators base, for example, I have a base in the South East of my Fallujah Map, for a player example "Bob". I want it so only he, and all my 4 admins are allowed in, but no one else, unless they are added to the UID list.

This is what I have set up in my mission.sqm:


Code:
};
    class Sensors
    {
 
                class Item0
                {
                position[]={9845.4043,0,3606.3677};
                a=650;
                b=500;
                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.";
                };
            };
            class Item1
            {
                position[]={370.22241,0,296.13831};
                a=650;
                b=500;
                activationBy="WEST";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="DonatorBase1";
                expCond="(vehicle player) in thislist;";
                expActiv="DonatorBase1 = [] execVM ""Scripts\donatorbase.sqf"";";
                expDesactiv="terminate DonatorBase1; titleText [""You have left Killzone1419s Base!"", ""PLAIN DOWN"", 3];";
                class Effects
                {
                    titleType="TEXT";
                    titleEffect="PLAIN DOWN";
                    title="You are entering a restricted zone.";
            };
        };
      };
  };

This is pasted just after:

Code:
class Item6
        {
            position[]={6835.0513,7,4084.0942};
            name="spawn4";
            type="Empty";
        };

On the "Class Markers" Line.





Is this code necessary?Above class Item0? Is this what's breaking my server?

Code:
items=1;
 
I keep getting stuck on "wait for host". I'm trying to add a restriction zone for my admin base, for a total of 4 admins. I'm also trying to add a restriction zone for each donators base, for example, I have a base in the South East of my Fallujah Map, for a player example "Bob". I want it so only he, and all my 4 admins are allowed in, but no one else, unless they are added to the UID list.

This is what I have set up in my mission.sqm:


Code:
};
    class Sensors
    {
 
                class Item0
                {
                position[]={9845.4043,0,3606.3677};
                a=650;
                b=500;
                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.";
                };
            };
            class Item1
            {
                position[]={370.22241,0,296.13831};
                a=650;
                b=500;
                activationBy="WEST";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="DonatorBase1";
                expCond="(vehicle player) in thislist;";
                expActiv="DonatorBase1 = [] execVM ""Scripts\donatorbase.sqf"";";
                expDesactiv="terminate DonatorBase1; titleText [""You have left Killzone1419s Base!"", ""PLAIN DOWN"", 3];";
                class Effects
                {
                    titleType="TEXT";
                    titleEffect="PLAIN DOWN";
                    title="You are entering a restricted zone.";
            };
        };
      };
  };

This is pasted just after:

Code:
class Item6
        {
            position[]={6835.0513,7,4084.0942};
            name="spawn4";
            type="Empty";
        };

On the "Class Markers" Line.





Is this code necessary?Above class Item0? Is this what's breaking my server?

Code:
items=1;
Try
Code:
    class Markers
    {
        items=7;
        class Item0
        {
            position[]={7839.6055,381.33774,8414.7324};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={-18697.58,379.53012,25815.256};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932.3345,0.39950246,1989.1094};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={2236.0391,0.63119155,1923.3735};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={8738.1328,0.45720705,2122.1082};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={10909.267,0.57597214,2422.3096};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={13510.764,0.44504455,5249.3027};
            name="spawn4";
            type="Empty";
        };
    };
    class Sensors
    {
        items=2;
        class Item0
        {
            position[]={9845.4043,0,3606.3677};
            a=650;
            b=500;
            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.";           
            };
        };   
        class Item1
        {
            position[]={370.22241,0,296.13831};
            a=650;
            b=500;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="DonatorBase1";
            expCond="(vehicle player) in thislist;";
            expActiv="DonatorBase1 = [] execVM ""Scripts\donatorbase.sqf"";";
            expDesactiv="terminate DonatorBase1; titleText [""You have left Killzone1419s Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };
        };
    };
};
 
Got it working.

What I did was:

Removed the

Code:
titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";

Of each item.

and fix a few semi colons.

Now it looks like:

Code:
    };
        class Item6
        {
            position[]={6835.0513,7,4084.0942};
            name="spawn4";
            type="Empty";
        };
    };
    class Sensors
    {
        items=2;
        class Item0
        {
            position[]={9845.4043,0,3606.3677};
            a=300;
            b=300;
            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
            {
            };
        }; 
        class Item1
        {
            position[]={370.22241,0,296.13831};
            a=300;
            b=300;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="DonatorBase1";
            expCond="(vehicle player) in thislist;";
            expActiv="DonatorBase1 = [] execVM ""Scripts\donatorbase.sqf"";";
            expDesactiv="terminate DonatorBase1; titleText [""You have left Killzone1419s Base!"", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };
    };
};
class Intro
 
not that im aware of that would be good but people would be able to find the password out somehow, there i a script that locks a gate and you type the numbers on your num pad but i cant find it :(
 
How can i make triggers?I'm in the 2D editor,i found the trigger button but what do i have to do?


I'm kinda sorta new to this whole thing too, but in previous changes I made to my own files for my server, to set a trigger all you gotta do is click on the trigger "tab" then double click where you want it. (It being the safe zone) After that you can basically customize it to whatever you want, say it will play music on when you enter the zone, or whatever you want it to do. But for this it is a place holder so you can easily find where you want your zone. You can actually edit it to see how far out you want it to be too.

After you have that done you can successfully save it. Go to where you saved it in the files, and since your using the 2D editor, I believe it automatically makes it into a mission.sqm file. But dont quote me on that because I use the 3D editor. If you open that using Notepad ++ you can find some lines of code that state the trigger. Just look for the brackets that have numbers in it. E.G. [4602.09,7259.12] It may be longer than that but it definately will have different numbers, because you will have it in a different spot.

Hope that helped!

Ps, sorry I am not very good at describing things in a short and sweet way. If you have any questions just hop in my ts (listed in my sig) and I will help you from there.
 
I'm kinda sorta new to this whole thing too, but in previous changes I made to my own files for my server, to set a trigger all you gotta do is click on the trigger "tab" then double click where you want it. (It being the safe zone) After that you can basically customize it to whatever you want, say it will play music on when you enter the zone, or whatever you want it to do. But for this it is a place holder so you can easily find where you want your zone. You can actually edit it to see how far out you want it to be too.

After you have that done you can successfully save it. Go to where you saved it in the files, and since your using the 2D editor, I believe it automatically makes it into a mission.sqm file. But dont quote me on that because I use the 3D editor. If you open that using Notepad ++ you can find some lines of code that state the trigger. Just look for the brackets that have numbers in it. E.G. [4602.09,7259.12] It may be longer than that but it definately will have different numbers, because you will have it in a different spot.

Hope that helped!

Ps, sorry I am not very good at describing things in a short and sweet way. If you have any questions just hop in my ts (listed in my sig) and I will help you from there.


Thanks for your help but i found a friend who is scripting and he told me to go here: http://dayz.st/w/Protected_Dome and i made it..:D now that i finally rented the server i can install all the scripts i want to and i hope i wont have any crashes..thanks for the reply.I use 3D editor too.
 
I would highly HIGHLY recommend installing them one by one, making sure the server still works after you installed each mod. AND MAKE LOTS OF BACK UPS!!! I cant stress that enough. Good Luck!
 
Thanks but im an expert on installing xD.I dont know how to make scripts but to install?I know how to install scripts as well as i know my house.And of course i have the original files of the server in a folder so that i wont do anything stupid and ask the owner of the website to reset it.
 
I cant seem to get it to work either, game loads up, then says mission couldn't be loaded, then spawns in about 2k west into the debug. able to get back on the map and everything is where it's supposed to be, but the base isn't "protected". not sure really what to do to fix it.
 
Back
Top