please help custom skins reset to default on server startup

Turkfalso

New Member
ok i found from reading other posts you had to edit server_playerlogin.sgf, i copied someone elses model example into it, saved it, started the server, but all the models reset to the originals. pls help, im using Rmod on Pwnoz0r's server pack.
 
ok i was able to edit it now but i get this error for some reason
 

Attachments

  • bandicam 2013-02-24 12-40-27-509.jpg
    bandicam 2013-02-24 12-40-27-509.jpg
    19.7 KB · Views: 27
i know whats wrong but what should be in config.cpp? i copied the origional config.cpp into the PBO and replaced it but it doesnt work?? mabye the editing has changed some of the lines in the script, but how come overs got this working :S
 
This is what i use, just replace the "000000000" with your GUID's and they will KEEP their custom skins and Custom Loadout.

Code:
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";
};
};
 
That's horrible... use a switch
Code:
switch (_playerID) do {
        case "000000000": { _model = "FR_R"; };
        case "000000000": { _model = "GUE_Soldier_2";};
        default {};
};
 
That's horrible... use a switch
Code:
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 time
 

Attachments

  • server_playerLogin.sqf
    3.8 KB · Views: 12
Seven----that's the only thing i could come up with at the time, will try your idea though.......THANKS
 
Back
Top