Jump to content
  • 0

Jihad in safezone


lucho

Question

 

How i can make that players can not jihad in safzone?

 

private ["_hasBomb","_count","_boom","_lock"];

closeDialog 0;

if (DZE_ActionInProgress) exitWith {};
if (vehicle player != player) exitWith { titleText ["WTF? You cannot shit inside a vehicle!","PLAIN"]; };
_hasBomb = "Laserbatteries" in magazines player;

_count = 10;

if (_hasBomb) then {

	player removeMagazine "Laserbatteries";

	titleText ["Suicide bomb activated! Countdown started!","PLAIN"];

	uiSleep 4;

	while {(_count > 0)} do {

		titleText [format["72 virgins are yours in... %1",_count],"PLAIN"];

		_count = _count -1;

		uiSleep 1;

	};


	_pos = getPos (vehicle player);

	_boom = "Bo_GBU12_LGB" createVehicle [(_pos select 0),(_pos select 1)+1,1];

	_boom = "Bo_GBU12_LGB" createVehicle [(_pos select 0),(_pos select 1)+2,1];

	uiSleep 3;

	titleText ["","PLAIN"];

	[format["%1 Used a SUICIDE BOMB at [%2]. TraderCheck: %3",name player,(mapGridPosition _pos),inTraderCity]] call my_scripts_logger;

} else {

	titleText ["You need a Suicide Bomb(Laser Batteries) for this!","PLAIN DOWN"];

};

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
23 hours ago, seelenapparat said:

_abort = false;

customsafezonepos = [array of arrays];

yourcustomalloweddistance = 50;

{

if ((player distance _x) < yourcustomalloweddistance) then {

_abort = true;

};

} foreach customsafezonepos;

if (_abort) exithwith{...};

something like this would be a way to achieve your goal.

maybe something like this ?

if (??????????????????) exitWith { titleText ["WTF? You cannot shit inside a safezone!","PLAIN"]; };
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...