Peter Brennan
Member
try using a check to see if the player is a newspawn or not.. if they are not then execute the logincamera.
this is the code... credits to player2
change logincamera_execute.sqf to:
in your init.sqf make sure you have it like this
not sure if this will work as i didnt test it... let me know how you go! if it doesnt work ill grap your mission.pbo off you and install and test myself for you
this is the code... credits to player2
change logincamera_execute.sqf to:
Code:
sleep 5;
waitUntil {!dialog};
camera = compile preprocessFileLineNumbers "camera\logincamera.sqf";
waitUntil {!isNil ("dayzLoginRecord")};
if !(dayzPlayerLogin2 select 2) then
{
player spawn camera;
};
execVM "camera\playerspawn.sqf";
in your init.sqf make sure you have it like this
Code:
//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "logincamera_execute.sqf";}];
_playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
_nul = [] execVM "logincamera_execute.sqf";
not sure if this will work as i didnt test it... let me know how you go! if it doesnt work ill grap your mission.pbo off you and install and test myself for you