Jump to content

[Tutorial] Keep Non-Epoch skins or Overwatch skins on logout


Recommended Posts

Hello Epoch forums! i have seen many ways to keep Non-Epoch skins on logout, but some of them are a little hard and can mess up stuff (or not :P) so here is how i do it.

 

it really simple, and the only thing you need to do is comment out 3 lines!

 

Here is how:

1. Go into dayz_server.pbo\compile\server_playerLogin.sqf

2. Around line 89 you will find

	if (!(_model in AllPlayers)) then {
		_model = "Survivor2_DZ";
	};

just comment the line out like this:

//	if (!(_model in AllPlayers)) then {
//		_model = "Survivor2_DZ";
//	};

save and repack the pbo and upload it and you are done!

its that simple, no need to add anything

 

- NorthyPark

Link to comment
Share on other sites

Hello Epoch forums! i have seen many ways to keep Non-Epoch skins on logout, but some of them are a little hard and can mess up stuff (or not :P) so here is how i do it.

 

it really simple, and the only thing you need to do is comment out 3 lines!

 

Here is how:

1. Go into dayz_server.pbo\compile\server_playerLogin.sqf

2. Around line 89 you will find

	if (!(_model in AllPlayers)) then {
		_model = "Survivor2_DZ";
	};

just comment the line out like this:

//	if (!(_model in AllPlayers)) then {
//		_model = "Survivor2_DZ";
//	};

save and repack the pbo and upload it and you are done!

its that simple, no need to add anything

 

- NorthyPark

 

this will allow all kinds of skin no matter what, gonna be funny for you when a hacker stops by and decides to turn everyone into a goat and they arent turned back when they relog.

not to mention the fact that if player data becomes corrupt at some point, the player will most likely not be able to log into your server anymore as they do not have a default skin in case something goes wrong.

 

to only allow skins you decide, you need to find all the skin names, and the CaSe correct name or they this will not work.

 

now find your variables.sqf and find the array called AllPlayers (its around the top somewhere iirc), now add the skins names with cAsE correct spelling and they will not be change on relog.

 

should look like this, by default:

AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ","Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker1_DZ","Rocker2_DZ","Rocker3_DZ","Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","Soldier_TL_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Drake_Light_DZ","CZ_Special_Forces_GL_DES_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","CZ_Soldier_Sniper_EP1_DZ","Graves_Light_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","TK_Special_Forces_MG_EP1_DZ","TK_Soldier_Sniper_EP1_DZ","TK_Commander_EP1_DZ","RU_Soldier_Crew_DZ","INS_Lopotev_DZ","INS_Soldier_AR_DZ","INS_Soldier_CO_DZ","INS_Bardak_DZ","INS_Worker2_DZ"];

if you have a custom variables file, add this in there somewhere else add it somewhere below the line in the init where it loads the default variables.sqf

 

if you still have problems with the skin not adding correctly, then its cause your database is omiting the "" around the classname, in that case you need to add the skin name above the allplayers line, like this:

skinclassname = "skinclassname";

now only the default skins and the ones you selected will be allowed on relog and you wont have players unable to log into the server cause they dont have a skin or players forced to be animals untill you decide to stop by and turn them back into a normal skin.

Link to comment
Share on other sites

this will allow all kinds of skin no matter what, gonna be funny for you when a hacker stops by and decides to turn everyone into a goat and they arent turned back when they relog.

not to mention the fact that if player data becomes corrupt at some point, the player will most likely not be able to log into your server anymore as they do not have a default skin in case something goes wrong.

 

to only allow skins you decide, you need to find all the skin names, and the CaSe correct name or they this will not work.

 

now find your variables.sqf and find the array called AllPlayers (its around the top somewhere iirc), now add the skins names with cAsE correct spelling and they will not be change on relog.

 

should look like this, by default:

AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","SurvivorWurban_DZ","SurvivorWsequishaD_DZ","SurvivorWsequisha_DZ","SurvivorWpink_DZ","SurvivorW3_DZ","SurvivorW2_DZ","Bandit1_DZ","Bandit2_DZ","BanditW1_DZ","BanditW2_DZ","Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker1_DZ","Rocker2_DZ","Rocker3_DZ","Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","Soldier_TL_PMC_DZ","Soldier_Sniper_PMC_DZ","Soldier_Bodyguard_AA12_PMC_DZ","Drake_Light_DZ","CZ_Special_Forces_GL_DES_EP1_DZ","TK_INS_Soldier_EP1_DZ","TK_INS_Warlord_EP1_DZ","FR_OHara_DZ","FR_Rodriguez_DZ","CZ_Soldier_Sniper_EP1_DZ","Graves_Light_DZ","GUE_Soldier_MG_DZ","GUE_Soldier_Sniper_DZ","GUE_Soldier_Crew_DZ","GUE_Soldier_CO_DZ","GUE_Soldier_2_DZ","TK_Special_Forces_MG_EP1_DZ","TK_Soldier_Sniper_EP1_DZ","TK_Commander_EP1_DZ","RU_Soldier_Crew_DZ","INS_Lopotev_DZ","INS_Soldier_AR_DZ","INS_Soldier_CO_DZ","INS_Bardak_DZ","INS_Worker2_DZ"];

if you have a custom variables file, add this in there somewhere else add it somewhere below the line in the init where it loads the default variables.sqf

 

if you still have problems with the skin not adding correctly, then its cause your database is omiting the "" around the classname, in that case you need to add the skin name above the allplayers line, like this:

skinclassname = "skinclassname";

now only the default skins and the ones you selected will be allowed on relog and you wont have players unable to log into the server cause they dont have a skin or players forced to be animals untill you decide to stop by and turn them back into a normal skin.

i guess this is better, so if you are afraid of hacker/ or have a populated server you should use this. thx halv :)

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...