Hey guys, using Pwnozor's build, I'm trying to get certain players to receive a certain skin when they login if they don't have it already. I am working through dayz_server and server_playerLogin.sqf.
Here's my section on models. I've got a new spawn skin selection going, that's what all the skins listed are about.
I'm trying the line in bold to try to get it to assign a model by playerID. I've just hidden my playerID.
Right now, I get stuck at Loading. I don't know scripting beyond reading simple code and trial/error copy/paste, but I get a lot of stuff working. Any help is appreciated.
Here's my section on models. I've got a new spawn skin selection going, that's what all the skins listed are about.
Code:
if (!_isNew) then {
//RETURNING CHARACTER
_inventory = _primary select 4;
_backpack = _primary select 5;
_survival = _primary select 6;
_model = _primary select 7;
_hiveVer = _primary select 8;
[B] if (getPlayerUID _x == '********') then _model = ["Profiteer2_EP1"][/B]
if (!(_model in ["SurvivorW2_DZ","Survivor3_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","Bandit1_DZ","Rocket_DZ","Ins_Soldier_2","GUE_Soldier_2","RU_Priest","Haris_Press_EP1","GUE_Soldier_1","FR_AR","FR_AC","Profiteer2_EP1","Graves","Functionary1","RU_Pilot","RU_Doctor","Profiteer3","GUE_Soldier_Scout","US_Delta_Force_EP1","US_Delta_Force_M14_EP1","US_Delta_Force_Marksman_EP1","FR_Light","GUE_Soldier_3","GUE_Commander","GER_Soldier_EP1","FR_TL","FR_GL","Functionary2","RUS_Soldier2","RU_Citizen1","Ins_Soldier_1","CDF_Soldier","MVD_Soldier","FR_R","UN_CDF_Soldier_EP1","UN_CDF_Soldier_Light_EP1","TK_CIV_Worker02_EP1","TK_Special_Forces_EP1"])) then {
_model = ["GUE_Soldier_2","RU_Priest","Haris_Press_EP1","GUE_Soldier_1","GER_Soldier_EP1","Profiteer2_EP1","Graves","Ins_Soldier_2","Functionary1","RU_Pilot","RU_Doctor","Profiteer3","GUE_Soldier_Scout","US_Delta_Force_EP1","TK_Special_Forces_EP1","GUE_Soldier_3","FR_TL","Functionary2","RUS_Soldier2","RU_Citizen1","Ins_Soldier_1","CDF_Soldier","MVD_Soldier","UN_CDF_Soldier_EP1","UN_CDF_Soldier_Light_EP1","TK_CIV_Worker02_EP1"] select floor random 26;
};
} else {
_model = _primary select 3;
_hiveVer = _primary select 4;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
if (_model == "") then {
_model = "Survivor2_DZ";
};
I'm trying the line in bold to try to get it to assign a model by playerID. I've just hidden my playerID.
Code:
if (getPlayerUID _x == '********') then _model = ["Profiteer2_EP1"]
Right now, I get stuck at Loading. I don't know scripting beyond reading simple code and trial/error copy/paste, but I get a lot of stuff working. Any help is appreciated.