Gr8 Posted November 19, 2014 Report Share Posted November 19, 2014 Borders and spawn protection? Not sure if i understand. Span Protection : Punish player for constantly exiting and entering safezone Borders : Use an in game object around the borders of safezone to indentify the godmode zone Link to comment Share on other sites More sharing options...
Donnovan Posted November 19, 2014 Author Report Share Posted November 19, 2014 Gr8Boi.This is nice! Definitely on the todo when i update things here. Link to comment Share on other sites More sharing options...
BruteMan Posted November 23, 2014 Report Share Posted November 23, 2014 Loving this script much better then most i have found here. One thing tho I found that i am running a Epoch / Origins server the Origins map is causing areas that are not traders to be safe zones by default in this script. Is there a way to exclude map areas? i.e. Sector "B" island in top-right / north-east is showing up as a safe zone and Knin Island in bottom-left /south west is showing up as a safe zone without traders there. I take it its from some map icon or something identifying the areas...... Edit: Also Stari-Dvor is showing as safe zone. Edit2: Checking my sensors and your code i see your using the toggle "canbuild=false" to toggle "inSafeZone=True" can I override this in sensors by adding inSafeZone=false? Tied that didn't work guess i'll have to allow building in sectorB till i figure out a fix. Link to comment Share on other sites More sharing options...
Donnovan Posted November 24, 2014 Author Report Share Posted November 24, 2014 BruteMan,I believe you found it.The script use the canBuild global variable to turn safezone on/off.You can create another global variable on the sensors (the sensors allow many "lines" of code*), like inUnsafeArea and change canBuild in Gebriel safezone to inUnsafeArea.* like "canBuild=false; inUnsafeArea=false; diag_log 'Player entered safezone!';" Link to comment Share on other sites More sharing options...
Gr8 Posted November 29, 2014 Report Share Posted November 29, 2014 Is this script compatible with Infistar? Link to comment Share on other sites More sharing options...
Ree Posted November 29, 2014 Report Share Posted November 29, 2014 Is this script compatible with Infistar? Yes it is. ------------------------------------- Donnovan When a Non admin shoots there gun in the safezone they dont get the displayed msg saying they cant do that. ------------------------------------- Also one of my users found a problem if Player B Jumps into the Passenger side and Quickly Scrolls to switch seats jumping into the driver seat the player is not kicked out and they can drive off with the car, they cant access gear but that wont matter if they drive off with it and wait the time for it to let them access it. Link to comment Share on other sites More sharing options...
Donnovan Posted November 29, 2014 Author Report Share Posted November 29, 2014 Ree, can you try this modified safezone.sqf? The changes are commented with //NEW LINE!. This is to fix te problem of players entering as passenger and fast switching to driver to get control of the car. //Gebriel Safezones //By Donnovan from Brazil don_incar = 0; don_firedEH_1 = nil; don_godon_1 = 0; inSafeZone = false; [] spawn { private ["_runOneTime","_canbuild","_don_passengers","_don_veh_crew","_don_player_veh","_don_veh_driver"]; waitUntil {!(isNil "canbuild")}; _runOneTime = false; _canbuild = canbuild; while {true} do { waitUntil {!((_canbuild && canbuild) || (!_canbuild && !canbuild)) || !_runOneTime}; _canbuild = canbuild; if (!canbuild) then { player_zombieCheck = {}; fnc_usec_damageHandler = {}; fnc_usec_unconscious = {}; player allowDamage false; player removeAllEventHandlers "handleDamage"; don_godon_1 = 1; inSafeZone = true; sleep 0.025; [] spawn { private ["_myHdEh"]; while {!canbuild} do { _myHdEh = player addEventHandler ["handleDamage", {0}]; sleep 0.02; player removeEventHandler ["handleDamage",_myHdEh]; }; }; if (isNil "don_firedEH_1") then { don_firedEH_1 = 0; sleep 0.025; don_firedEH_1 = player addEventHandler ["Fired",{ cutText ["Can't fire with godon.","PLAIN DOWN", 2]; deleteVehicle (_this select 6); }]; }; }; if (canbuild && _runOneTime) then { [] spawn { for "_x" from 1 to 30 do { if (_x >= 6) then {cutText [format ["%1 seconds to godoff and shoton.", 31-_x], "PLAIN DOWN"];}; sleep 1; if (!canbuild) exitWith {}; if (_x == 30) then { cutText ["Godoff and Shoton!", "PLAIN DOWN"]; player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf"; fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf"; player allowDamage true; player removeAllEventHandlers "handleDamage"; player addEventHandler ["handleDamage", {_this call fnc_usec_damageHandler;}]; player removeEventHandler ["Fired", don_firedEH_1]; don_firedEH_1 = nil; don_godon_1 = 0; inSafeZone = false; }; }; }; }; if (!canbuild && don_incar == 1) then { _don_player_veh = don_player_veh; don_veh_crew = crew _don_player_veh; _don_veh_driver = driver _don_player_veh; _don_player_veh allowDamage false; _don_player_veh removeAllEventHandlers "handleDamage"; _don_player_veh addEventHandler ["handleDamage", {0}]; _don_player_veh removeAllEventHandlers "Fired"; _don_player_veh addEventHandler ["Fired",{deleteVehicle (_this select 6);}]; //PASSENGERS NAMES _don_passengers = ""; {if (Alive _x) then {_don_passengers = _don_passengers + format [" %1",name _x];};} forEach don_veh_crew; _don_veh_crew = []; {if (Alive _x) then {_don_veh_crew = _don_veh_crew + [getPlayerUID _x];};} forEach don_veh_crew; //ASSING OWNERS if (player == _don_veh_driver) then { _don_player_veh setVariable ["don_ownerity_code", format ["%1_%2", getPlayerUID player, round diag_tickTime], true]; _don_player_veh setVariable ["don_crew", _don_veh_crew, true]; //CHANGE _don_player_veh setVariable ["don_passengers", _don_passengers, true]; }; }; if (canbuild && don_incar == 1) then { _don_player_veh = don_player_veh; _don_veh_driver = driver _don_player_veh; [_don_player_veh] spawn { for "_x" from 1 to 15 do { sleep 1; if (!canbuild) exitWith {}; if (_x == 15) then { (_this select 0) allowDamage true; (_this select 0) removeAllEventHandlers "handleDamage"; (_this select 0) addEventHandler ["handleDamage", {_this call vehicle_handleDamage;}]; (_this select 0) removeAllEventHandlers "Fired"; }; }; }; //DISASSING OWNERS if (player == _don_veh_driver) then { _don_player_veh setVariable ["don_ownerity_code", nil, true]; _don_player_veh setVariable ["don_crew", nil, true]; _don_player_veh setVariable ["don_passengers", nil, true]; }; }; _runOneTime = true; }; }; [] spawn { private ["_don_veh_crew","_wait_time","_last_mark","_max_time"]; while {true} do { _max_time = 480; waitUntil {sleep 0.0625; vehicle player != player}; don_player_veh = vehicle player; don_incar = 1; if (!canbuild) then { //VEHICLE OWNERITY CHECK _don_veh_crew = don_player_veh getVariable ["don_crew", nil]; if (isNil "_don_veh_crew") then {_don_veh_crew = [getPlayerUID player];}; if !(getPlayerUID player in _don_veh_crew) then { call compile format ['if (isNil "don_%1") then {don_%1 = diag_tickTime;}; _last_mark = don_%1;', don_player_veh getVariable ["don_ownerity_code", 0]]; _wait_time = diag_tickTime - _last_mark; if (_wait_time < _max_time) then { while {player != vehicle player} do { //NEW LINE! player action ["getOut", don_player_veh]; sleep 0.25; //NEW LINE! }; //NEW LINE! [objNull, player, rSAY, "error1"] call RE; cuttext [format ["Owners:%1. %2 seconds to liberate.", don_player_veh getVariable ["don_passengers","Owners not found"], round (_max_time - _wait_time)], "PLAIN DOWN"]; cad_pvar_smessage = [format ["%1 is messing with your vehicle! %2 seconds to liberate!", name player, round (_max_time - _wait_time)], _don_veh_crew]; publicVariable "cad_pvar_smessage"; } else { call compile format ['don_%1 = nil;', don_player_veh getVariable ["don_ownerity_code", 0]]; //DISASSING OWNERS don_player_veh setVariable ["don_ownerity_code", nil, true]; don_player_veh setVariable ["don_crew", nil, true]; don_player_veh setVariable ["don_passengers", nil, true]; cuttext [format ["Vehicle is now free for all!"], "PLAIN DOWN"]; cad_pvar_smessage = [format ["One of your safe vehicle is now free and player %1 is in it!", name player], _don_veh_crew]; publicVariable "cad_pvar_smessage"; }; }; don_player_veh allowDamage false; don_player_veh removeAllEventHandlers "handleDamage"; don_player_veh addEventHandler ["handleDamage", {0}]; don_player_veh removeAllEventHandlers "Fired"; don_player_veh addEventHandler ["Fired",{deleteVehicle (_this select 6);}]; }; if (canbuild) then { don_player_veh allowDamage true; don_player_veh removeAllEventHandlers "handleDamage"; don_player_veh addEventHandler ["handleDamage", {_this call vehicle_handleDamage;}]; don_player_veh removeAllEventHandlers "Fired"; //DISASSING OWNERS if (player == driver don_player_veh) then { don_player_veh setVariable ["don_ownerity_code", nil, true]; don_player_veh setVariable ["don_crew", nil, true]; don_player_veh setVariable ["don_passengers", nil, true]; }; }; waitUntil {sleep 0.0625; vehicle player == player}; don_incar = 0; don_player_veh = nil; }; }; //Thanks Maca for the Remote Message idea "cad_pvar_smessage" addPublicVariableEventHandler { private ["_message", "_receivers"]; _message = (_this select 1) select 0; _receivers = (_this select 1) select 1; if (getPlayerUID player in _receivers) then {cutText [_message, "PLAIN DOWN"];}; }; Link to comment Share on other sites More sharing options...
Ree Posted November 30, 2014 Report Share Posted November 30, 2014 Cool will added it now and test, Ok so on the Test Server we had some users point out something new If ("Player A") Changes Skin - Godmode Is Disabled and they are allowed to Fire there weapon or blow stuff up. Link to comment Share on other sites More sharing options...
Donnovan Posted November 30, 2014 Author Report Share Posted November 30, 2014 Ree, Can you test the fix to "Change Clothes remove god mode and allow player to fire in safe"?This also fix: problem of players entering as passenger and fast switching to driver to get control of the car. SAFEZONE.SQFdon_incar = 0; don_firedEH_1 = nil; inSafeZone = false; //Understand as God_mode_is_on? donn_fnc_usec_damageHandle_1051 = fnc_usec_damageHandle; donn_fnc_usec_damageHandle_GEBR = { private ["_unit"]; _unit = _this select 0; mydamage_eh2 = _unit addEventHandler ["Fired", {_this call player_fired;}]; mydamage_eh3 = _unit addEventHandler ["Killed", {_id = [] spawn player_death;}]; don_firedEH_1 = player addEventHandler ["Fired",{ cutText ["Can't fire with godon.","PLAIN DOWN", 2]; deleteVehicle (_this select 6); }]; [] spawn {sleep 1; player allowDamage false;}; }; [] spawn { private ["_runOneTime","_canbuild","_don_passengers","_don_veh_crew","_don_player_veh","_don_veh_driver"]; waitUntil {!(isNil "canbuild")}; _runOneTime = false; _canbuild = canbuild; while {true} do { waitUntil {!((_canbuild && canbuild) || (!_canbuild && !canbuild)) || !_runOneTime}; _canbuild = canbuild; if (!_canbuild && !inSafeZone) then { player_zombieCheck = {}; fnc_usec_damageHandler = {}; fnc_usec_unconscious = {}; fnc_usec_damageHandle = donn_fnc_usec_damageHandle_GEBR; player allowDamage false; player removeAllEventHandlers "handleDamage"; inSafeZone = true; sleep 0.025; [] spawn { while {!canbuild} do { player removeAllEventHandlers "handleDamage"; uiSleep 0.02; }; }; don_firedEH_1 = player addEventHandler ["Fired",{ cutText ["Can't fire with godon.","PLAIN DOWN", 2]; deleteVehicle (_this select 6); }]; }; if (_canbuild && _runOneTime) then { [] spawn { for "_x" from 1 to 30 do { if (_x >= 6) then {cutText [format ["%1 seconds to godoff and shoton.", 31-_x], "PLAIN DOWN"];}; sleep 1; if (!canbuild) exitWith {}; if (_x == 30) then { cutText ["Godoff and Shoton!", "PLAIN DOWN"]; player_zombieCheck = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_zombieCheck.sqf"; fnc_usec_damageHandler = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_damageHandler.sqf"; fnc_usec_unconscious = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_unconscious.sqf"; fnc_usec_damageHandle = donn_fnc_usec_damageHandle_1051; player allowDamage true; player removeAllEventHandlers "handleDamage"; player addEventHandler ["handleDamage", {_this call fnc_usec_damageHandler;}]; player removeEventHandler ["Fired", don_firedEH_1]; inSafeZone = false; }; }; }; }; if (!_canbuild && don_incar == 1) then { _don_player_veh = don_player_veh; don_veh_crew = crew _don_player_veh; _don_veh_driver = driver _don_player_veh; _don_player_veh allowDamage false; _don_player_veh removeAllEventHandlers "handleDamage"; _don_player_veh addEventHandler ["handleDamage", {0}]; _don_player_veh removeAllEventHandlers "Fired"; _don_player_veh addEventHandler ["Fired",{deleteVehicle (_this select 6);}]; //PASSENGERS NAMES _don_passengers = ""; {if (Alive _x) then {_don_passengers = _don_passengers + format [" %1",name _x];};} forEach don_veh_crew; _don_veh_crew = []; {if (Alive _x) then {_don_veh_crew = _don_veh_crew + [getPlayerUID _x];};} forEach don_veh_crew; //ASSING OWNERS if (player == _don_veh_driver) then { _don_player_veh setVariable ["don_ownerity_code", format ["%1_%2", getPlayerUID player, round diag_tickTime], true]; _don_player_veh setVariable ["don_crew", _don_veh_crew, true]; //CHANGE _don_player_veh setVariable ["don_passengers", _don_passengers, true]; }; }; if (_canbuild && don_incar == 1 && _runOneTime) then { _don_player_veh = don_player_veh; _don_veh_driver = driver _don_player_veh; [_don_player_veh] spawn { for "_x" from 1 to 15 do { sleep 1; if (!canbuild) exitWith {}; if (_x == 15) then { (_this select 0) allowDamage true; (_this select 0) removeAllEventHandlers "handleDamage"; (_this select 0) addEventHandler ["handleDamage", {_this call vehicle_handleDamage;}]; (_this select 0) removeAllEventHandlers "Fired"; }; }; }; //DISASSING OWNERS if (player == _don_veh_driver) then { _don_player_veh setVariable ["don_ownerity_code", nil, true]; _don_player_veh setVariable ["don_crew", nil, true]; _don_player_veh setVariable ["don_passengers", nil, true]; }; }; _runOneTime = true; }; }; [] spawn { private ["_don_veh_crew","_wait_time","_last_mark","_max_time"]; while {true} do { _max_time = 480; waitUntil {sleep 0.0625; vehicle player != player}; don_player_veh = vehicle player; don_incar = 1; if (!canbuild) then { //VEHICLE OWNERITY CHECK _don_veh_crew = don_player_veh getVariable ["don_crew", nil]; if (isNil "_don_veh_crew") then {_don_veh_crew = [getPlayerUID player];}; if !(getPlayerUID player in _don_veh_crew) then { call compile format ['if (isNil "don_%1") then {don_%1 = diag_tickTime;}; _last_mark = don_%1;', don_player_veh getVariable ["don_ownerity_code", 0]]; _wait_time = diag_tickTime - _last_mark; if (_wait_time < _max_time) then { while {player != vehicle player} do { player action ["getOut", don_player_veh]; uiSleep 0.2; }; [objNull, player, rSAY, "error1"] call RE; cuttext [format ["Owners:%1. %2 seconds to liberate.", don_player_veh getVariable ["don_passengers","Owners not found"], round (_max_time - _wait_time)], "PLAIN DOWN"]; cad_pvar_smessage = [format ["%1 is messing with your vehicle! %2 seconds to liberate!", name player, round (_max_time - _wait_time)], _don_veh_crew]; publicVariable "cad_pvar_smessage"; } else { call compile format ['don_%1 = nil;', don_player_veh getVariable ["don_ownerity_code", 0]]; //DISASSING OWNERS don_player_veh setVariable ["don_ownerity_code", nil, true]; don_player_veh setVariable ["don_crew", nil, true]; don_player_veh setVariable ["don_passengers", nil, true]; cuttext [format ["Vehicle is now free for all!"], "PLAIN DOWN"]; cad_pvar_smessage = [format ["One of your safe vehicle is now free and player %1 is in it!", name player], _don_veh_crew]; publicVariable "cad_pvar_smessage"; }; }; don_player_veh allowDamage false; don_player_veh removeAllEventHandlers "handleDamage"; don_player_veh addEventHandler ["handleDamage", {0}]; don_player_veh removeAllEventHandlers "Fired"; don_player_veh addEventHandler ["Fired",{deleteVehicle (_this select 6);}]; }; if (canbuild) then { don_player_veh allowDamage true; don_player_veh removeAllEventHandlers "handleDamage"; don_player_veh addEventHandler ["handleDamage", {_this call vehicle_handleDamage;}]; don_player_veh removeAllEventHandlers "Fired"; //DISASSING OWNERS if (player == driver don_player_veh) then { don_player_veh setVariable ["don_ownerity_code", nil, true]; don_player_veh setVariable ["don_crew", nil, true]; don_player_veh setVariable ["don_passengers", nil, true]; }; }; waitUntil {sleep 0.0625; vehicle player == player}; don_incar = 0; don_player_veh = nil; }; }; //Thanks Maca for the Remote Message idea "cad_pvar_smessage" addPublicVariableEventHandler { private ["_message", "_receivers"]; _message = (_this select 1) select 0; _receivers = (_this select 1) select 1; if (getPlayerUID player in _receivers) then {cutText [_message, "PLAIN DOWN"];}; }; Link to comment Share on other sites More sharing options...
Ree Posted November 30, 2014 Report Share Posted November 30, 2014 Yep will do - Update: Works like a Charm for me had some uses try to abuse the hell out of it and it seems to be holding up =D Link to comment Share on other sites More sharing options...
Gr8 Posted November 30, 2014 Report Share Posted November 30, 2014 Nice Work ! Is there a way to add Car God mode ? Link to comment Share on other sites More sharing options...
Ree Posted December 1, 2014 Report Share Posted December 1, 2014 Nice Work ! Is there a way to add Car God mode ? When they enter the area they should already be in GodMode we toke RPG and Shot the hell out of them and they didnt blow or damage WHAT MOST SAFE PREVENTSCant kill other playersCant destroy vehiclesCant access any gear for any player/vehicleWHAT GEBRIEL PREVENTSCant kill other playersCant destroy vehiclesCan't mess with any player gearCan't mess with vehicles you does not have ownerityCan't mess with gear of vehicles you does not have ownerity Link to comment Share on other sites More sharing options...
Gr8 Posted December 3, 2014 Report Share Posted December 3, 2014 When they enter the area they should already be in GodMode we toke RPG and Shot the hell out of them and they didnt blow or damage hah, i must have missed that. How about Having Car God 20 secs after leaving the safezone Link to comment Share on other sites More sharing options...
Donnovan Posted December 4, 2014 Author Report Share Posted December 4, 2014 Gr8Boi,Gebriel have 15 seconds car god mode after exiting the safe and 30 seconds player god mode. Link to comment Share on other sites More sharing options...
Gr8 Posted December 4, 2014 Report Share Posted December 4, 2014 That makes sense, Thanks Link to comment Share on other sites More sharing options...
Ree Posted December 5, 2014 Report Share Posted December 5, 2014 Didn't see this before so i thought i ask user to fire there gun to test the msg that pops up saying you cant Fire. Admins get a msg but Non Admins do not. also got this when entering someone car from BE 04.12.2014 21:58:44: Re (XX.XXX.XX.XXX:XXXX) XXXXXXXXXXXXXXXXXXXXXXX- Value Restriction #187 "cad_pvar_smessage" = ["Re is messing with your vehicle! 480 seconds to reset your Vehicle Protection.!",["XXXXXXXXXXXXXXXXXXXX"]] i do have cad_pvar_s in my BE publicvariable file Link to comment Share on other sites More sharing options...
Donnovan Posted December 5, 2014 Author Report Share Posted December 5, 2014 Ree, have you did step 5 of the installation process?5) BATTLEYE FILTERSOn the BE filter publicvariable.txt, search for the line that starts with 5 "". At the end of this line add a space and after the space add !"cad_pvar_s". Link to comment Share on other sites More sharing options...
Ree Posted December 5, 2014 Report Share Posted December 5, 2014 Ree, have you did step 5 of the installation process?5) BATTLEYE FILTERS On the BE filter publicvariable.txt, search for the line that starts with 5 "". At the end of this line add a space and after the space add !"cad_pvar_s". Yep i did and this just happen after a reset anything to do with publicvariableval.txt publicvariable.txt //new 5 "" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="norrinRAlie" !="BIS_effects_gepv" !="dayzPlayerLogin" !="dayzPlayerLogin2" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq" !="currentInvites" !"cad_pvar_s" !="PVOZ_adminSkin" 5 "norrn" !="norrnRACarUp" !="norrnRAPicUp" !="norrnRaDrag" !="norrnR180" !="norrnRalie" !="norrnRLact" !="norrnRALW" !="norrnRDead" 5 "usec" !="usecMorphine" !="usecBandage" !="usecBleed" 5 "PVDZE_" !"PVDZE_player" !="PVDZE_send" !="PVDZE_log_lockUnlock" !="PVDZE_Server_Simulation" !="PVDZE_veh_Update" !="PVDZE_plr_GutBody" !="PVDZE_plr_GutBodyZ" !="PVDZE_veh_Lock" !="PVDZE_plr_DeathB" !="PVDZE_maintainArea" !="PVDZE_obj_Publish" !="PVDZE_obj_Swap" !="PVDZE_plr_Save" !="PVDZE_obj_Delete" !="PVDZE_obj_Trade" !="PVDZE_veh_Publish2" !="PVDZE_zed_Spawn" !="PVDZE_plr_Died" !="PVDZE_plr_TradeMenu" !="PVDZE_veh_Upgrade" !="PVDZE_atp" !="PVDZE_plr_Login" !="PVDZE_plr_Login2" !="PVDZE_plr_LoginRecord" !="PVDZE_plr_DeathBResult" !="PVDZE_veh_SFix" !="PVDZE_plr_Hit" !="PVDZE_plr_HitV" !="PVDZE_veh_SFuel" !="PVDZE_plr_HideBody" !="PVDZE_plr_Morph" !="PVDZE_veh_Publish" !="PVDZE_plr_Characters" !="PVDZE_lockVault" !="PVDZE_obj_setlocalVars" !="PVDZE_obj_getlocalVars" !="PVDZE_bank_Save" !="PVDZE_plr_Save" !="PVDZE_account_Doublecheck" 5 "PVAHR_" !"PVAHR_0_" 1 "PVAH" 5 "remExFP" !="\"remExFP\" = \[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" !"\[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" 5="player" 5="server" 5 "fnc_plyrHit" 5 "AntiHack" 1 "Delete" publicvariableval.txt //new 5 "fnc_plyrHit" 5 "<NULL - team member>" 5 "preprocessFile" 5 "preprocessFileLineNumbers" 5 "setVehicleInit" 5 "processInitCommands" 5 "HangenderRE" 5 "vilegaming" 5 "v\.i\.l\.e" 5 "Lystic" 5 "Rustler" 5 "BattleFieldClearance" 5 "BIS_MPF_logic" 5 "BIS_MPF_dummygroup" 5 "compile" 5 "loadFile" 1 "call" 5 "mission" 1 "spawn" 5 "format" 5 "parse" 5 "terminate" 5 "eventhandler" 5 "hintC" 5 "hintS" 5 "loading" 5 "\"call\"" 5 "call compile" 5 "toString" 5 "toArray" 5 "ctrlset" 5 "rsay" 5 "rland" 5 "rsetDir" 5 "_YakB" 5 "local_sefFuel" 5 "getVariable" 5 "hiveupdateresu" 5 "isServer" 5 "isDedicated" 5 "cutText" 5 "publicVariable" 5 "code" 5 "onPlayer" 5 "select" 5 "while" 5 "count" 5 "markerText" 5 "BIS_fnc" 5 "_bis" 5 "markerType" 5 "teamtype" 5 "composeText" 5 "teamName" 5 "execVM" 5 "fn_swapVars\.sqf" 5 "processInitCommands" 5 "promptRName\.sqf" 5 "rpcCodeVarName" 5 "rpcDirectCall" 5 "broadcastRpcCallAll" 5 "broadcastRpcCallIfLocal" 5 "norrnRACarUp" 5 "norrnRAPicUp" 5 "markerBrush" 5 "hideObject" 5 "deleteCollection" 5 "forceEnd" 5 "createAgent" 5 "deleteVehicle" 5 "deleteTeam" 5 "getPlayerUID" 5 "getVariable" 5 "addAction" 5 "AddM" 5 "AddP" 5 "AddS" 5 "AddV" 5 "AddW" 5 "setAcc" 5 "setAtt" 5 "setC" 5 "setD" 5 "setF" !="SetFuel" 5 "setG" 5 "setH" 5 "setM" 5 "setObj" 5 "setOver" 5 "setP" 5 "setR" 5 "setS" 5 "setT" 5 "setUnit" 5 "setV" 5 "setW" 5 "execFSM" 5 "clearM" 5 "clearV" 5 "clearW" 5 "createD" 5 "createG" 5 "createM" 5 "createS" 5 "createT" 5 "createU" 5 "createV" 5 "debugLog" 5 "debugFSM" 5 "deleteM" 5 "kbTell" 5 "kbReact" 5 "fadeSound" 5 "fadeMusic" 5 "showC" 5 "skipTime" 5 "taskHint" 5 "titleCut" 5 "titleText" !",\"titleText\"," 5 "getM" 5 "getFSMvariable" 5 "getG" 5 "moveIn" 5 "synchronizeO" 5 "synchronizeT" 5 "synchronizeW" 5 "triggerA" 5 "triggerS" 5 "triggerT" 5 "MarkerColor" 5 "MarkerDir" 5 "MarkerPos" 5 "MarkerSize" 5 "onEachFrame" 5 "hasInterface" 5 "onMapS" 5 "OnGroup" 5 "onDouble" 5 "onPreload" 5 "onTeamS" 5 "onShowNew" 5 "setUnconscious" 5 " exec " 5 " set " 5 " str " 5 "exec\(" 5 "set\(" 5 "str\(" 5 "exec\[" 5 "set\[" 5 "str\[" 5 "exec\{" 5 "set\{" 5 "str\{" 5 "exec'" 5 "set'" 5 "str'" 5 "exec\"" 5 "set\"" 5 "str\"" 5 "\)exec" 5 "\)set" 5 "\)str" 5 "\]exec" 5 "\]set" 5 "\]str" 5 "\}exec" 5 "\}set" 5 "\}str" 5 "'exec" 5 "'set" 5 "'str" 5 "str " 5 " \nstr" 5 "\nstr" 5 "str\n" 5 "str\n " 5 ",str" 5 "str," 5 "str " 5 "set " 5 " \nset" 5 "\nset" 5 "set\n" 5 "set\n " 5 ",set" //<-187--------Space---------- 5 "set," //<-198----------0------------ 5 "set " //<-189----------1------------ 5 "exec " 5 "exec\n" 5 "exec\n " 5 ",exec" 5 "exec," 5 "exec " 5 "isNil" 5 "object_setFixServer" 5 "allowConnection" 5 "check_publishobject" 5 "dayz_disco" 5 "dayz_hiveVersionNo" 5 "dayz_objectUID" 5 "dayz_objectUID2" 5 "dayz_players" 5 "dayz_serverObjectMonitor" 5 "dayz_versionNo" 5 "dayz_zombifiedTowns" 5 "dayzPlayerLogin" 5 "dayzPlayerLogin2" 5 "isSinglePlayer" 5 "needUpdate_objects" 5 "server_characterSync" 5 "server_getDiff" 5 "server_getDiff2" 5 "server_hiveReadWrite" 5 "server_hiveWrite" 5 "server_onPlayerDisconnect" 5 "server_spawnCrashSite" 5 "server_updateNearbyObjects" 5 "vehicle_handleInteract" 5 "vehicle_handleServerKilled" 5 "allunits" 5 "preprocess" 5 "runinitscript" 5 "createdialog" 5 "modify" 5 "BIS_Alice_fnc_CivilianHit" 5 "BIS_Alice_mainscope" 5 "BIS_fnc_getFactions" 5 "allowConnection" 5 "check_publishobject" 5 "dayz_disco" 5 "dayz_hiveVersionNo" 5 "dayz_objectUID" 5 "dayz_objectUID2" 5 "dayz_players" 5 "dayz_serverObjectMonitor" 5 "dayz_versionNo" 5 "dayz_zombifiedTowns" 5 "dayzPlayerLogin" 5 "dayzPlayerLogin2" 5 "isSinglePlayer" 5 "needUpdate_objects" 5 "server_characterSync" 5 "server_getDiff" 5 "server_getDiff2" 5 "server_hiveReadWrite" 5 "server_hiveWrite" 5 "server_onPlayerDisconnect" 5 "server_spawnCrashSite" 5 "server_updateNearbyObjects" 5 "vehicle_handleInteract" 5 "vehicle_handleServerKilled" 5 "allunits" 5 "preprocess" 5 "runinitscript" 5 "createdialog" 5 "actionmonitor" 5 "bis_" 5 "building_spawnloot" 5 "building_spawnzombies" 5 "camp_spawnzombies" 1 "dog_" 5 "drn_" 5 "eh_localcleanup" 5 "fnc_" 5 "fn_nicespot" 5 "gear_ui_init" 5 "horde_epeen_determine_humanity_fnc" 5 "horde_epeen_fnc_fill_page" 5 "infectedcamps" 5 "local_eventkill" 5 "local_gutobject" 5 "local_setfuel" 5 "local_zombiedamage" 5 "object_" 5 "player_alertzombies" 5 "player_animalcheck" 5 "player_checkstealth" 5 "player_combatroll" 5 "player_countmagazines" 5 "player_crossbowbolt" 5 "player_death" 5 "player_fired" 5 "player_firemonitor" 5 "player_gearset" 5 "player_gearsync" 5 "player_guicontrolflash" 5 "player_humanitychange" 5 "player_humanitymorph" 5 "player_medbandage" 5 "player_medepi" 5 "player_medmorphine" 5 "player_medpainkiller" 5 "player_medtransfuse" 5 "player_music" 5 "player_packtent" 5 "player_projectilenear" 5 "player_spawn_1" 5 "player_spawn_2" 5 "player_spawncheck" 5 "player_summedical" 5 "player_switchmodel" 5 "player_temp_calculation" 5 "player_throwobject" 5 "player_updategui" 5 "player_weaponfirednear" 5 "player_zombieattack" 5 "player_zombiecheck" 5 "r_player_removeactions2" 5 "PVDZ_" 5 "PVAH_" 5 "PVAHR_" 5 "PV_" 5 "remExField" 5 "remExFP" 5 "drn_AskServerDynamicWeatherEventArgs" 5 "BIS_effects_gepv" 5 "server_" 5 "stream_locationcheck" 5 "stream_locationdel" 5 "stream_locationfill" 5 "ui_changedisplay" 5 "ui_initdisplay" 5 "vehicle_gethitpoints" 5 "world_isday" 5 "world_sunrise" 5 "world_surfacenoise" 5 "zombie_" 5 "createUnit" 5 "createGroup" 5 "BattleFieldClearance" 5 "HighCommandSubordinate" 5 "FirstAidSystem" 5 "AlternativeInjurySimulation" 5 "FORM" Link to comment Share on other sites More sharing options...
Donnovan Posted December 6, 2014 Author Report Share Posted December 6, 2014 Ree,In the text: "Re is messing with your vehicle! 480 seconds to reset your Veh...".The word "reset" is causing the kick couse of line #189 of publicvariablval.txt:5 "set "You can change this line to:5 "set " !="to reset your"If your player name is Gregset instead of Re, i believe you will get kicked too, couse of "set ".Its banning for any public variable that have the content "set ". Link to comment Share on other sites More sharing options...
Ree Posted December 6, 2014 Report Share Posted December 6, 2014 Lol funny, i'll just set it to 1 to log it and will just keep a eye on it =D btw any word on why non admins don't get a msg when they fire there weapon in safezone? Thanks Donnovan. Link to comment Share on other sites More sharing options...
Donnovan Posted December 6, 2014 Author Report Share Posted December 6, 2014 Ree, this is because you use infiStar, and the no-shot state is done by infiStar, that don't have the message.If you is a admin player, it's "like if you is not using infiStar" so you use the Gebriel code for no-shot state, that have the message.This is necessary to make the script compatible with infiStar. For a server without infiStar, everyone get the message because it will allways use the Gebriel code for no-shot state. Link to comment Share on other sites More sharing options...
Gr8 Posted December 14, 2014 Report Share Posted December 14, 2014 Bug : Player Can kill people via, Backblast and Throwing trash cans at people Link to comment Share on other sites More sharing options...
Gr8 Posted December 14, 2014 Report Share Posted December 14, 2014 Maybe You can implement this in the safezone script? _notInSafeZone = [ 'MAAWS','RPG7V','M136','RPG18','STINGER', 'MeleeHatchet_DZE','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge', 'MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat' ]; _cwep = currentWeapon player; if (_cwep in _notInSafeZone) then { _swep = ''; { if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith { _swep = _x; }; } forEach (weapons player); if (_swep == '') then { player playActionNow 'PutDown'; _iPos = getPosATL player; _radius = 1; _removed = ([player,_cwep,1] call BIS_fnc_invRemove); if (_removed == 1) then { _item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE']; _item addWeaponCargoGlobal [_cwep,1]; }; } else { player selectweapon _swep; }; } Link to comment Share on other sites More sharing options...
Donnovan Posted December 14, 2014 Author Report Share Posted December 14, 2014 The weapon goes to the ground? The player lose the weapon? Link to comment Share on other sites More sharing options...
Gr8 Posted December 15, 2014 Report Share Posted December 15, 2014 The weapon goes to the ground? The player lose the weapon? the weapon goes to the back BIS_fnc_invRemove Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now