Jump to content
  • 0
lucho

Jihad in safezone

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"];

};

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

_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.

Share this post


Link to post
Share on other sites
  • 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"]; };

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...