ive been trying to setup where a player has a random model skin on new spawn instead of the std survivor skin but no matter what i do i always fresh spawn in as a survivor and no other skin. this is how i have my server_playerLogin.sqf set as
if (!(_model in AllPlayers)) then {
_model = ["Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ",
"RU_Policeman_DZ","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"] select floor random 24;
};
} else {
_isInfected = _primary select 3;
_model = _primary select 4;
_hiveVer = _primary select 5;
if (isNil "_model") then {
_model = ["Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ",
"RU_Policeman_DZ","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"] select floor random 24;
} else {
if (_model == "") then {
_model = ["Rocker4_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ",
"RU_Policeman_DZ","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"] select floor random 24;
};
};
PLEASE could i get some help on this . thanks
even tried this and still no luck .
if (!(_model in ["FR_Rodriguez_DZ","GUE_Soldier_2","GUE_Soldier_CO_DZ","GUE_Soldier_2","FR_R","TK_INS_Soldier_EP1_DZ","Soldier_Bodyguard_AA12_PMC_DZ","GUE_Soldier_MG,GUE_Commander","Soldier1_DZ","Camo1_DZ","Bandit1_DZ","Rocket_DZ"])) then {
_model = ["TK_INS_Warlord_EP1_DZ","FR_R","FR_Rodriguez_DZ","GUE_Soldier_CO_DZ","TK_INS_Soldier_EP1_DZ","Soldier_Bodyguard_AA12_PMC_DZ"] select floor random 7;
};
} else {
_isInfected = _primary select 3;
_model = _primary select 4;
_hiveVer = _primary select 5;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
if (_model == "") then {
_model = "Survivor2_DZ";
};
};
Question
sparrow8332
ive been trying to setup where a player has a random model skin on new spawn instead of the std survivor skin but no matter what i do i always fresh spawn in as a survivor and no other skin. this is how i have my server_playerLogin.sqf set as
PLEASE could i get some help on this . thanks
even tried this and still no luck .
Link to comment
Share on other sites
12 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now