Protection Dome with Alarm HELP pls

Hottoty

New Member
Ok this is my first attempt and making my own mod and most of this is stolen from others.

But here is the code.

Dome.sqf
Code:
private ["_obj","_radar","_espera","_lista","_SoundOn","_activa"];
 
_side = _this select 0;
_obj  = _this select 1;
_dist = _this select 2;
 
if (not isServer) exitWith {};
 
_espera = false;
_activa = false;
 
while {true} do
{
_radar = createTrigger ["EmptyDetector", position _obj];
_radar setTriggerActivation [_side, "present", true];
_radar setTriggerArea [_dist, _dist, 0, true];
_radar setTriggerStatements ["this", "", ""];
_radar setTriggerText "";
_radar setTriggerTimeout [0, 0, 0, false];
_radar setTriggerType "SWITCH";
 
_espera = true;
while {_espera} do
{
_lista = list _radar;
sleep 1.00;
if (count _lista > 0) then
titleText ["You are entering restricted area", "PLAIN DOWN", 3];
{
  if (not _activa) then
  {
    if ((getPlayerUID player) in ["***" , "****" , "****" , "****" ]) exitWith {
        titleText ["Welcome home", "PLAIN DOWN", 3];
    };
  _soundOn = createSoundSource ["Alarm", position _obj, [], 0];
  _activa = true;
 
    sleep 5;
    titleText ["Are you blind? GET OUT", "PLAIN DOWN", 3];
    sleep 5;
    titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
    sleep 5;
    titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
    sleep 5;
    titleText ["Bye", "PLAIN DOWN", 3];
    sleep 2;
    player setPos [-18709.713,379.10086,25923.943];
  }
}
else
{
  if (_activa) then
  {
  deletevehicle _soundOn;
  _activa = false;
  _espera = false;
  };
};
};
};

And I added this to the init.sqf in the

Code:
if (!isDedicated) then {
    ["ANY", 399.419,100.01,4593.33, 400] execVM "Scripts\Dome.sqf";

In the BEC script.txt added this

Code:
5 execVM !"\"execVM\"," !"execVM \"Scripts\Dome.sqf\""

I get battleye restriction 134
and the server is running but the dome and BEC are not working. ANY suggestions would be great.
 
Added successfully a protected dome with film grain ,teleport player ,injured player and added a siren !!

Gesendet von meinem GT-I9100 mit Tapatalk 4 Beta
 
Back
Top