I had been searching for a script to protect my admin's base, so unauthorized players would be killed. After a little bit of research, I had found the following tutorial (which has a syntax mispell I already fixed: rectangle=1). I've followed all the steps, and created a sensor (which is actually a trigger in Arma 2's Map Editor), whose code I added to mission.sqm:
class Item5
{
position[]={1261.4967,4688.3843,-140.78297};
a=150;
b=150;
rectangle=1;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You have left the Admin Dome."", ""PLAIN DOWN"", 3];";
class Effects
{
titleType="TEXT";
titleEffect="PLAIN DOWN";
title="If you see this, the xxx dome script isn't working right now but the intrusion sensor is!";
};
};
I've verified that class Sensor's items is set to 6 (the fifth sensors are DayZ Epoch's default ones, which make the Trader Cities work), so the custom sensor I added is the sixth and, therefore, the item's number is correct. The dome.sqf file content is the following:
// Dome
if ((getPlayerUID player) in ["123456789"]) exitWith {
titleText ["Welcome to the Admin Dome!", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["This dome is an Admin-only area, please leave immediately.", "PLAIN DOWN", 3];
sleep 5;
titleText ["If you do not turn back you will be killed.", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 10 seconds!", "PLAIN DOWN", 3];
sleep 5;
titleText ["You must leave now!", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned!", "PLAIN DOWN", 3];
sleep 3;
player setDamage 1;
The issue with the script is that it isn't showing me the welcome text nor killing me when any unauthorized user access the base (triggers the sensor). Do you have any solution to fix this issue?
Question
UngarMax
Hello there,
I had been searching for a script to protect my admin's base, so unauthorized players would be killed. After a little bit of research, I had found the following tutorial (which has a syntax mispell I already fixed: rectangle=1). I've followed all the steps, and created a sensor (which is actually a trigger in Arma 2's Map Editor), whose code I added to mission.sqm:
I've verified that class Sensor's items is set to 6 (the fifth sensors are DayZ Epoch's default ones, which make the Trader Cities work), so the custom sensor I added is the sixth and, therefore, the item's number is correct. The dome.sqf file content is the following:
The issue with the script is that it isn't showing me the welcome text nor killing me when any unauthorized user access the base (triggers the sensor). Do you have any solution to fix this issue?
Thanks in advance!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now