Jump to content
  • 0

DDOS Protection/Heli guard help please?


Th3-Hunter333

Question

Ok guys, trying to get something working here. The heli guard/ddos protection for helis script located here.

  Reveal hidden contents

Obviously this isnt working ive Tried multiple different ways of implementing this and cant seem to figure it out. Im testing it by flying up and then alt tabbing from game and shutting the exe down in task manager.

Heli_Guard.sqf

  Reveal hidden contents

Line im using to call this inside the main init.sqf at the bottom of the file

  Reveal hidden contents

No errors client sided or server sided 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Under dayz_server.pbo inside of compile/server_onPlayerDisconnect.sqf i have also added this line of code to no availability in getting this script to work so im still at a loss here

// DDOS Heli Guard
if ((vehicle player) isKindOf "AIR") then {
                if (driver (vehicle player) == player) then {
                    _pos = ([((vehicle player) call fnc_getPos),10,1000,2,0,5,0] call BIS_fnc_findSafePos); //AH_fnc_getPos
                    [(vehicle player),[_pos select 0,_pos select 1,2]] call fnc_setPos; //AH_fnc_setPos
                    sleep 1;
                    {if (_x != player) then {_x action ['Eject',(vehicle player)]}} forEach (crew (vehicle player));
                    player action ['Eject',(vehicle player)];
                } else {
                    waitUntil {(vehicle player == player)};
                    sleep 1;
                };
            } else {
                sleep 1;
                {if (_x != player) then {_x action ['Eject',(vehicle player)]}} forEach (crew (vehicle player));
                player action ['Eject',(vehicle player)];
};

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...