discussion and help goes here...
thread link: http://opendayz.net/threads/release-custom-spawn-locations-based-on-uid-no-db-triggers.14279/
thread link: http://opendayz.net/threads/release-custom-spawn-locations-based-on-uid-no-db-triggers.14279/
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
For Epoch 1.0.2.4 you need to use the new login variable:
PVDZE_plr_Login
So the init.sqf code should look like:
Code:p2_newspawn = compile preprocessFileLineNumbers "newspawn\newspawn_execute.sqf"; waitUntil {!isNil ("PVDZE_plr_Login")}; if (dayzPlayerLogin2 select 2) then { player spawn p2_newspawn; };
For regular Chernarus 1.8 the login variable is PVCDZ_plr_Login. If you are not sure what the correct login variable for the mod you are using is just check the bottom of server_playerLogin.sqf
And you didn't really need to make a new thread for this. Could have just asked player2 to update her OP directions.
For Epoch 1.0.2.4 you need to use the new login variable:
PVDZE_plr_Login
So the init.sqf code should look like:
Code:p2_newspawn = compile preprocessFileLineNumbers "newspawn\newspawn_execute.sqf"; waitUntil {!isNil ("PVDZE_plr_Login")}; if (dayzPlayerLogin2 select 2) then { player spawn p2_newspawn; };
For regular Chernarus 1.8 the login variable is PVCDZ_plr_Login. If you are not sure what the correct login variable for the mod you are using is just check the bottom of server_playerLogin.sqf
And you didn't really need to make a new thread for this. Could have just asked player2 to update her OP directions.
PVDZE_plr_Login = [_worldspace,_state,_randomSpot];
PVDZE_plr_Login2 = null;
//##UID Based Custom Spawn Locations##
p2_newspawn = compile preprocessFileLineNumbers "fixes\newspawn.sqf";
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2) then
{
player spawn p2_newspawn;
};
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
[] execVM "buildings\excbridge.sqf";
if (!isDedicated) then {
sleep 1;
//Player UID's
if ((getPlayerUID player) in ["151713991","34243520","46994990","48687382","49447094"]) exitWith {
//## Custom Spawn Location 1 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
player setPosATL [137.425,124.279,280];
};
does this not work with the AH that vilayer sells?
PVDZE_plr_Login = [_worldspace,_state,_randomSpot];
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];
//##UID Based Custom Spawn Locations##
p2_newspawn = compile preprocessFileLineNumbers "scripts\newspawn.sqf";
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2) then
{
player spawn p2_newspawn;
};
#include "\z\addons\dayz_code\system\REsec.sqf"
[] execVM "faction.sqf";
[] execVM "debug\addmarkers.sqf";
[] execVM "debug\addmarkers75.sqf";
if (!isDedicated) then {
sleep 1;
//Player GEEK WOODS SPAWN
if ((getPlayerUID player) in ["125203846","103042182","120303174","151055302","119603142"]) exitWith {
//## Custom Spawn Location 1 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
player setPosATL [8195.67,8082.82,0.289];
};
//Player UID's
if ((getPlayerUID player) in ["0"]) exitWith {
//## Custom Spawn Location 2 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
player setPosATL [195,7213,1.5];
};
};
DZE_teleport = [99999,99999,99999,99999,99999];
_cMenu = ['','RscMainMenu','RscMoveHigh','#WATCH', ...];
_cMenu = ['#USER:newspawn','#USER:classes','#USER:Page4','#USER:Donator','#USER:Peasant'];
[] execVM "\z\addons\dayz_code\system\antihack.sqf";
That is wrong. You only want to add _randomspot to login2.
And are you using the latest update from infistar? 10/25?
If yes then he put a special version of the antiTP in it. See:
http://opendayz.net/threads/help-pr...-towing-and-heli-lift.13744/page-5#post-79531
You should never run anti hack from the mission pbo. Anyone can see the files in your mission pbo. You are giving cheaters everything they need to access your admin menu. Put it in server pbo \init folder and execute it from the bottom of server_functions.sqf.
PVDZE_plr_Login = [_worldspace,_state,_randomSpot];
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];
PVDZE_plr_Login = [_worldspace,_state];
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];
PVDZE_plr_Login = null;
PVDZE_plr_Login2 = null;
PVDZE_plr_Login = null;
PVDZE_plr_Login2 = [_worldspace,_state,_randomSpot];
PVDZE_plr_Login = null;
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];
PVDZE_plr_Login = [_worldspace,_state];
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];