Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
@Fox:
lhm stands for loewenherz modification
thats my customisation of rocket's great DayZ Mod + RMod2 + new car types + new skins + wasteland features
+ my own basebuilding syste, baseshield system, custom loadout system, admin event features ...
@machine:
i dont have much experience with triggers, never used them in my mission file ^^
i will test it if i have some time... at the moment i cant help you, sorry :/
maybe the trigger zone is too high ?-> position[]={1352.1855,152.44626,5808.2549};
not sure it is a ATL or ASL location...
Now i just need to find a solution to make the players/vehicles inside invincible but still kill unwelcome(unwhitelisted) players.
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
Then same thing but True when they leave the area. Same thing for vehicles should work.
Thats the invincibility bit anyway. As for whitelist playerID stuff?Code:player removeAllEventHandlers "handleDamage"; player addEventHandler ["handleDamage", {false}]; player allowDamage false; Then same thing but True when they leave the area. Same thing for vehicles should work.
![]()
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};
if ((getPlayerUID player) in ["XXXXXX"]) then {
titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3];
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned..!", "PLAIN DOWN", 3];
sleep 1;
player setDamage 1;
};
So where do i put it in a Code like this?
Code:if ((getPlayerUID player) in ["XXXXXX"]) then { titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3]; } else { titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3]; sleep 5; titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3]; sleep 5; titleText ["You were warned..!", "PLAIN DOWN", 3]; sleep 1; player setDamage 1; };
I just would try it to implement it here:
Code:if ((getPlayerUID player) in ["XXXXXX"]) then { titleText ["You are entering a restricted zone....identity confirmed. Welcome back.", "PLAIN DOWN", 3]; player removeAllEventHandlers "handleDamage"; player addEventHandler ["handleDamage", {false}]; player allowDamage false; } else { titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3]; sleep 5; titleText ["You have less than 5 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3]; sleep 5; titleText ["You were warned..!", "PLAIN DOWN", 3]; sleep 1; player setDamage 1; };
Can you post an example? Doesn't really know where to put it in my Sensor.pretty much and when they leave you have to make em non-god-mode-ey so put a {True} version of that stuff in a new sqf and exec in the expDesactiv="" part of your sensor.
class Sensors
{
items=01;
class Item0
{
position[]={4782.6865, 10257.946};
a=350;
b=350;
activationBy="ANY", "PRESENT", true;
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""Scripts\dome.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.";
};
};
};
_this = createTrigger ["EmptyDetector", [4782.6865, 10257.946, -339]];
_this setTriggerArea [150, 150, 0, false];
_this triggerAttachObject 1;
_this setTriggerActivation ["ANY", "PRESENT", true];
_trigger_0 = _this;
_soundSource = createSoundSource [""Siren"", position player, [4782.6865, 10257.946], 0]
class Sensors
{
items=01;
class Item451
{
position[]={4782.6865, 10257.946};
a=350;
b=350;
activationBy="ANY";
type="SWITCH"; or _this setTriggerType "SWITCH";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="adminbase = [] execVM ""Scripts\dome.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.";
};
};
};
this is a joke i hopethx leolilu
Code:type="SWITCH"; or _this setTriggerType "SWITCH";
// Dome
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) exitWith {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) exitWith {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
if ((getPlayerUID player) in [""83401862","228290","123360902","104075206","3911810","92610118""]) then {
titleText ["Welcome to your dome", "PLAIN DOWN", 3];
} else {
titleText ["You are entering a restricted zone, please turn back now or face certain death...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have 1 minute to turn back...", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 45 seconds to leave..", "PLAIN DOWN", 3];
sleep 15;
titleText ["You have less than 30 seconds to leave.. We aren't kidding!", "PLAIN DOWN", 3];
removeAllWeapons player;
sleep 15;
titleText ["You have less than 15 seconds to leave (you're about to die!)...", "PLAIN DOWN", 3];
sleep 15;
titleText ["LAST WARNING , U MAY DIE!", "PLAIN DOWN", 3];
sleep 5;
player setDamage 1;
};
class Sensors
{
items=01;
class Item1
{
position[]={4782.6865, 10257.946};
a=350;
b=350;
activationBy="ANY";
type="SWITCH"; or _this setTriggerType "SWITCH";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="AdminBase";
expCond="(vehicle player) in thislist;";
expActiv="adminbase = [] execVM ""Scripts\dome.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.";
};
};
};