Jump to content
  • 0

Donator spawn point setup


FragZ

Question

Is there a way to make donators be able to spawn in their base? Like set their position on spawn to there?

I found this on googlingthingy:

 

if (!isDedicated) then {
		sleep 0.5;
		if ((getPlayerUID player) in ["xxxxxxxxxx"]) exitWith {
			player setPosATL [13867,14464,1.5];
		};
		if ((getPlayerUID player) in ["xxxxxxxxxxx"]) exitWith {
			player setPosATL [13043,12211,1.5];
		};
		if ((getPlayerUID player) in ["xxxxxxxxxxxx"]) exitWith {
			player setPosATL [4878,10514,1.5];
		};
		if ((getPlayerUID player) in ["xxxxxxxxxxxx"]) exitWith {
			player setPosATL [13683,12241,1.5];
		};
	
};

Would that method work? if not what would do it?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Would like this to!

 

That probably wouldn't work on it's own FragZ.

Well I know a friend who has it working that way in his vanilla server. It is in a folder called FU and is called by idk which file... He won't tell me :O

Link to comment
Share on other sites

  • 0
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2 and !(player isKindOf "PZombie_VB")) then {
//insert setpos here optins here
};

that being said, i belive it would be better to change the if statements to a switch.

also changing the position to be generated randomly within 100m of the area (maybe with findsafepos) might be a good idea, to prevent players from dying if they placed something in that exact spot by mistake

 

edit:

also, it might not be best idea to spawn players 1,5m over ground, you should change that to 0.2 maybe

Link to comment
Share on other sites

  • 0

 

Would we maybe add this variable too?

if (freshSpawn == 2) then {

 

not needed with this.

 

 

If you guys could get this working and tell me how to add it that would be great! <3

 

just add your code inside my if statement, where i commented and add it to the buttom of your init.

 

however i would prob change your if statements to a switch instead ...

 

edit:

this is off the top of my head, but should work

waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2 and !(player isKindOf "PZombie_VB")) then {
	private ["_pos"];
//insert _pos options here, just change positions and "xxxxxxxxxx" to PlayerUID's
	switch(getPlayerUID player)do{
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
	};
	player setPos _pos;
};
Edited by Halvhjearne
Link to comment
Share on other sites

  • 0

 

not needed with this.

 

 

 

just add your code inside my if statement, where i commented and add it to the buttom of your init.

 

however i would prob change your if statements to a switch instead ...

 

edit:

this is off the top of my head, but should work

waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2 and !(player isKindOf "PZombie_VB")) then {
	private ["_pos"];
//insert _pos options here, just change positions and "xxxxxxxxxx" to PlayerUID's
	switch(getPlayerUID player)do{
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
		case "xxxxxxxxxx":{_pos = [13867,14464,0.02]};
	};
	player setPos _pos;
};

So I should just make a new file called *customspawns.sqf* and exec it from the init file? Would you mind explaining more a bit? If you got skype it would help too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...