lucho Posted September 9, 2016 Report Share Posted September 9, 2016 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 More sharing options...
0 seelenapparat Posted September 9, 2016 Report Share Posted September 9, 2016 _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. Link to comment Share on other sites More sharing options...
0 lucho Posted September 10, 2016 Author Report Share Posted September 10, 2016 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 More sharing options...
0 Shawn Posted September 10, 2016 Report Share Posted September 10, 2016 if(!(canbuild) || (inSafeZone)) exitWith {systemChat "WTF? You cannot shit inside a safezone!";}; Link to comment Share on other sites More sharing options...
0 Hooty Posted November 30, 2016 Report Share Posted November 30, 2016 LOL i see you have the take a dump as well Spoiler if (vehicle player != player) exitWith { titleText ["WTF? You cannot shit inside a vehicle!","PLAIN"]; }; Link to comment Share on other sites More sharing options...
Question
lucho
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now