[Release] Custom spawn location based on UID (No Database Triggers)

That whole coord won't work. Should just be 1100,2560,0.

And heres another thing...in your init.sqf do you have the antihack.sqf and resec disabled? If not, remove the whole line containing the antihack.sqf (does nothing anyways, dayz's fail antihack) and the #include "filepath\REsec.sqf";

Oh awesome! Thanks for clarifying man. Will give this a go now :)

Post back shortly.
 
Hey mate sorry just to confirm. To comment out those two lines I have this:

Code:
// #include "\z\addons\dayz_code\system\REsec.sqf"
&
Code:
// [] execVM "\z\addons\dayz_code\system\antihack.sqf";

is that right? If so I still can't seem to get it to work for some reason :(

my spawn params:

Code:
if (!isDedicated) then {
        sleep 1;
                        //Player UID's
        if ((getPlayerUID player) in ["95243846"]) exitWith {
        //## Custom Spawn Location 1 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
            player setPosATL [6686.8,2290.11,0.001];
        };
 
                        //Player UID's
        if ((getPlayerUID player) in ["73156806"]) exitWith {
        //## Custom Spawn Location 2 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
            player setPosATL [6686.8,2290.11,0.001];
        };
};

Thanks again for your help Matt

Edit: Also is there something I can see in the logs that might help diagnose the issue? RPT shows nothing out of the ordinary.
 
Hey mate sorry just to confirm. To comment out those two lines I have this:

Code:
// #include "\z\addons\dayz_code\system\REsec.sqf"
&
Code:
// [] execVM "\z\addons\dayz_code\system\antihack.sqf";

is that right? If so I still can't seem to get it to work for some reason :(

my spawn params:

Code:
if (!isDedicated) then {
        sleep 1;
                        //Player UID's
        if ((getPlayerUID player) in ["95243846"]) exitWith {
        //## Custom Spawn Location 1 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
            player setPosATL [6686.8,2290.11,0.001];
        };
 
                        //Player UID's
        if ((getPlayerUID player) in ["73156806"]) exitWith {
        //## Custom Spawn Location 2 - Format: [X,Y,Z] (Z = Height AtTerrainLevel)
            player setPosATL [6686.8,2290.11,0.001];
        };
};

Thanks again for your help Matt

Edit: Also is there something I can see in the logs that might help diagnose the issue? RPT shows nothing out of the ordinary.

Yeah, it really should work if you've followed instructions to the T, which it seems like you have...i'm at a loss man
 
Thanks mate :) appreciate your help. I'm wondering if there is another script conflicting or something.

Will keep investigating!

Thanks again
 
Working for DayZ v1.8.0.3

Server PBO

Open this file: ...\compile\server_playerSetup.sqf
Find this line: PVCDZ_plr_Login2 = [_worldspace,_state];
Replace it with: PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

Mission PBO
Open this file: ...\init.sqf
Paste this at the bottom of the file:
Code:
//##UID Based Custom Spawn Locations##
p2_newspawn = compile preprocessFileLineNumbers "fixes\newspawn.sqf";
waitUntil {!isNil ("PVCDZ_plr_Login2")};
if (PVCDZ_plr_Login2 select 2) then
{
player spawn p2_newspawn;
};
Create a new file: ...\fixes\newspawn.sqf
Paste this into it: http://pastebin.com/raw.php?i=uupQ0UJX
I checked, it works!;)
 
Back
Top