Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (_model == "") then {
_key = format["CHILD:999:select replace(cl.`inventory`, '""', '""""') inventory, replace(cl.`backpack`, '""', '""""') backpack, replace(coalesce(cl.`model`, 'Survivor2_DZ'), '""', '""""') model from `cust_loadout` cl join `cust_loadout_profile` clp on clp.`cust_loadout_id` = cl.`id` where clp.`unique_id` = '?':[%1]:",str(_playerID)];
_data = "HiveEXT" callExtension _key;
//Process result
_result = call compile format ["%1", _data];
_status = _result select 0;
if (_status == "CustomStreamStart") then {
if ((_result select 1) > 0) then {
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_inventory = call compile (_result select 0);
_backpack = call compile (_result select 1);
_model = call compile (_result select 2);
};
};
};
if (_playerID == "000000000") then {
_model = "FR_R";
};
if (_playerID == "000000000") then {
_model = "FR_R";
};
if (_playerID == "000000000") then {
_model = "GUE_Soldier_2";
};
if (_playerID == "000000000") then {
_model = "USMC_SoldierS_SniperH";
};
if (_playerID == "000000000") then {
_model = "FR_Commander";
};
if (_playerID == "000000000") then {
_model = "GUE_Soldier_2";
};
if (_playerID == "000000000") then {
_model = "Graves_Light";
};
if (_playerID == "000000000") then {
_model = "USMC_SoldierS_SniperH";
};
if (_playerID == "000000000") then {
_model = "USMC_SoldierS_SniperH";
};
if (_playerID == "000000000") then {
_model = "FR_AR";
};
if (_playerID == "000000000") then {
_model = "FR_AC";
};
if (_playerID == "000000000") then {
_model = "FR_Corpsman";
};
if (_playerID == "000000000") then {
_model = "USMC_SoldierS_SniperH";
};
if (_playerID == "000000000") then {
_model = "US_Soldier_Pilot_EP1";
};
if (!(_model in ["CZ_Special_Forces_TL_DES_EP1","Ins_Soldier_Medic","Ins_Soldier_MG","GUE_Soldier_Scout","UN_CDF_Soldier_Light_EP1","UN_CDF_Soldier_EP1","Ins_Soldier_AR","Ins_Soldier_Crew","Graves_Light","Ins_Soldier_1","Ins_Soldier_Sapper","Ins_Soldier_Pilot","Ins_Bardak","FR_Assault_GL","US_Delta_Force_Assault_EP1","Ins_Lopotev","FR_Commander","FR_R","FR_TL","FR_Corpsman","FR_Assault_R","GUE_Soldier_2","USMC_SoldierS_Spotter","GUE_Commander","USMC_SoldierS_SniperH","USMC_SoldierS_Sniper","MVD_Soldier","CZ_Soldier_Office_DES_EP1","GER_Soldier_Scout_EP1","UN_CDF_Soldier_SL_EP1","GER_Soldier_Scout_EP1","US_Soldier_TL_EP1","GER_Soldier_TL_EP1","CZ_Special_Forces_Scout_DES_EP1","USMC_Soldier_TL","RUS_Commander","MVD_Soldier","TK_GUE_Soldier_HAT_EP1","RU_Soldier_SL","MVD_Soldier_TL","US_Soldier_Pilot_EP1","US_Soldier_AAR_EP1","FR_AC","FR_AR","SurvivorW2_DZ","Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","BanditW1_DZ","Bandit1_DZ","SurvivorW2_DZ"])) then {
_model = ["BanditW1_DZ","Bandit1_DZ","Survivor2_DZ"] select floor random 3;
};
} else {
_model = _primary select 3;
_hiveVer = _primary select 4;
if (isNil "_model") then {
_model = "Survivor2_DZ";
} else {
if (_model == "") then {
_model = "Survivor2_DZ";
};
};
switch (_playerID) do {
case "000000000": { _model = "FR_R"; };
case "000000000": { _model = "GUE_Soldier_2";};
default {};
};
ok sorry guys for being a noob here but your playerlogin code looks really different to mine, im using pwnoz0r's hive and this is it. and if i can do this what must i edit? thanks for your timeThat's horrible... use a switch
Code:switch (_playerID) do { case "000000000": { _model = "FR_R"; }; case "000000000": { _model = "GUE_Soldier_2";}; default {}; };