Heya, just trying to get this set up at the moment but I've got stuck at this part:
This is what my init.sqf looks like at the moment (with a few other scripts installed). I'm not very good at this, so a bit scared of changing something incorrectly.
find this code
if (!isDedicated) then { // If mission is loaded by a player execute the player monitor 0 fadeSound 0; 0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED", 60]; _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
and change the playermonitor line to _playerMonitor = [] execFSM "admintools\player_monitor.fsm";
This is what my init.sqf looks like at the moment (with a few other scripts installed). I'm not very good at this, so a bit scared of changing something incorrectly.
Code:
/*
INITILIZATION
*/
startLoadingScreen ["","RscDisplayLoadCustom"];
cutText ["","BLACK OUT"];
enableSaving [false, false];
//REALLY IMPORTANT VALUES
dayZ_instance = 1029; //The instance
dayzHiveRequest = [];
initialized = false;
dayz_previousID = 0;
//disable greeting menu
player setVariable ["BIS_noCoreConversations", true];
//disable radio messages to be heard and shown in the left lower corner of the screen
//enableRadio false;
//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;
"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
if ((!isServer) && (isNull player) ) then
{
waitUntil {!isNull player};
waitUntil {time > 3};
};
if ((!isServer) && (player != player)) then
{
waitUntil {player == player};
waitUntil {time > 3};
};
if (isServer) then {
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
if (!isDedicated) then {
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
"heliCrash" addPublicVariableEventHandler {
_list = nearestObjects [_this select 1, ["CraterLong"], 100];
{deleteVehicle _x;} foreach _list;
};
};
if (isServer) then {
axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
"axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
};
if (!isDedicated) then {
//StreetLights
[] execVM "lights\street_lights.sqf";
};
if (!isDedicated) then {
[] execVM "fixes\change_streetlights.sqf";
};
if (!isDedicated) then {
[] execVM "Scripts\kh_actions.sqf";
};
//R3F Towing and shit (or whatever you want to title it)
execVM "R3F_ARTY_AND_LOG\init.sqf"
// UPSMON
call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
// SHK
call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
// run SAR_AI
[] execVM "addons\SARGE\SAR_AI_init.sqf";
_airraid = [] execVM "mmmyum_bomb.sqf";