Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
MisaAmane

Скрипт снятия скинов Namalsk

Не снимаются скины намальска. Прописал их в CfgSurvival.hpp и сам скрипт, но всё ещё при нажатии ничего не происходит. Сток скины снимает. Вот скрипт снятия:

// Created by [GEEK SQUAD]Churchie
// Contributors to getting it working are:| cyrq | Manatee Hunter | Deasil | OnlyblackSurvivor | Thank you!
player removeAction s_clothes;
s_clothes = -1;
private["_body","_result"];
    _body = _this select 3;
    _model = typeOf _body;
if( _model in ["Sniper1_DZ", "Camo1_DZ", "Functionary1_EP1_DZ", "Haris_Press_EP1_DZ", "Ins_Soldier_GL_DZ", "Priest_DZ", "Rocker2_DZ", "Soldier_Bodyguard_AA12_PMC_DZ", "TK_INS_Soldier_EP1_DZ", "TK_INS_Warlord_EP1_DZ", "Rocker1_DZ", "Rocker3_DZ", "Rocker4_DZ", "Bandit1_DZ", "Bandit2_DZ", "BanditW1_DZ", "BanditW2_DZ", "SurvivorW2_DZ", "SurvivorW3_DZ", "SurvivorWpink_DZ", "SurvivorWcombat_DZ", "SurvivorWdesert_DZ", "SurvivorWurban_DZ", "CZ_Special_Forces_GL_DES_EP1_DZ", "Drake_Light_DZ", "Pilot_EP1_DZ", "RU_Policeman_DZ", "Rocket_DZ", "Soldier1_DZ", "Soldier_Sniper_PMC_DZ", "Soldier_TL_PMC_DZ", "FR_OHara_DZ", "FR_Rodriguez_DZ", "CZ_Soldier_Sniper_EP1_DZ", "Graves_Light_DZ", "GUE_Commander_DZ", "GUE_Soldier_2_DZ", "GUE_Soldier_CO_DZ", "GUE_Soldier_Crew_DZ", "GUE_Soldier_Sniper_DZ", "Skin_Sniper1W_DZN", "Skin_CamoWinterW_DZN", "Skin_CamoWinter_DZN"] ) then { _model = "Skin_" + _model;
    _result = [player,_model] call BIS_fnc_invAdd;
if (_result) then { player playActionNow "PutDown";
private["_name","_method","_methodStr"];
    _name = _body getVariable["bodyName","unknown"];
    _method = _body getVariable["deathType","unknown"];
    _methodStr = localize format ["str_death_%1",_method];
    _class = "Survivor2_DZ";
    _position = getPosATL _body;
    _dir = getDir _body;
    _currentAnim = animationState
    _body; private ["_weapons","_magazines","_primweapon","_secweapon"];
    _weapons = weapons _body;
    _primweapon = primaryWeapon
    _body; _secweapon = secondaryWeapon _body;
if(!(_primweapon in _weapons) && _primweapon != "") then { _weapons = _weapons + [_primweapon]; };
if(!(_secweapon in _weapons) && _secweapon != "") then { _weapons = _weapons + [_secweapon]; };
    _magazines = magazines _body;
private ["_newBackpackType","_backpackWpn","_backpackMag"]; dayz_myBackpack = unitBackpack _body;
    _newBackpackType = (typeOf dayz_myBackpack);
if(_newBackpackType != "") then { _backpackWpn = getWeaponCargo unitBackpack _body;
    _backpackMag = getMagazineCargo unitBackpack _body; };
    _currentWpn = currentWeapon _body;
    _muzzles = getArray(configFile >> "cfgWeapons" >> _currentWpn >> "muzzles");
if (count _muzzles > 1) then { _currentWpn = currentMuzzle _body; };
        diag_log "Attempting to switch model";
        diag_log str(_weapons);
        diag_log str(_magazines);
        diag_log (str(_backpackWpn));
        diag_log (str(_backpackMag));
    _body setPosATL dayz_spawnPos;
    _oldUnit = _body;
    _group = createGroup west;
    _newUnit = _group createUnit [_class,dayz_spawnPos,[],0,"NONE"];
    _newUnit setPosATL _position;
    _newUnit setDir _dir; {_newUnit removeMagazine _x;} forEach magazines _newUnit;
    removeAllWeapons _newUnit; {
if (typeName _x == "ARRAY") then {_newUnit addMagazine [_x select 0,_x select 1]
    } else { _newUnit addMagazine _x };
    } forEach _magazines; { _newUnit addWeapon _x; } forEach _weapons;
if(str(_weapons) != str(weapons _newUnit)) then { { _weapons = _weapons - [_x];
    } forEach (weapons _newUnit); {
    _newUnit addWeapon _x;
    } forEach _weapons; };
if(_primweapon != (primaryWeapon _newUnit)) then { _newUnit addWeapon _primweapon; };
if(_secweapon != (secondaryWeapon _newUnit) && _secweapon != "") then { _newUnit addWeapon _secweapon; };
if (!isNil "_newBackpackType") then {
if (_newBackpackType != "") then { _newUnit addBackpack _newBackpackType;
    _oldBackpack = dayz_myBackpack; dayz_myBackpack = unitBackpack _newUnit; _backpackWpnTypes = [];
    _backpackWpnQtys = [];
if (count _backpackWpn > 0) then { _backpackWpnTypes = _backpackWpn select 0;
    _backpackWpnQtys = _backpackWpn select 1; };
    _countr = 0; { dayz_myBackpack addWeaponCargoGlobal [_x,(_backpackWpnQtys select _countr)];
    _countr = _countr + 1;
    } forEach _backpackWpnTypes;
    _backpackmagTypes = [];
    _backpackmagQtys = [];
if (count _backpackmag > 0) then { _backpackmagTypes =
    _backpackMag select 0;
    _backpackmagQtys = _backpackMag select 1; };
    _countr = 0; { dayz_myBackpack addmagazineCargoGlobal [_x,(_backpackmagQtys select _countr)];
    _countr = _countr + 1;
    } forEach _backpackmagTypes; }; };
        diag_log "Taking Clothes. Equipment:";
        diag_log str(weapons _newUnit); diag_log str(magazines _newUnit);
        diag_log str(getWeaponCargo unitBackpack _newUnit);
        diag_log str(getMagazineCargo unitBackpack _newUnit);
    removeAllWeapons _oldUnit; {_oldUnit removeMagazine _x;
    } forEach magazines _oldUnit; deleteVehicle _oldUnit;
    _newUnit setDamage 1;
    _newUnit setVariable["bodyName",_name,true];
    _newUnit setVariable["deathType",_method,true];
    } else {
        cutText ["Вам нужно больше места в инвентаре!", "PLAIN DOWN"];
    };
};

А вот cfgsurvival.hpp

 

// Generated by unRap v1.06 by Kegetys

class CfgSurvival {
	class Inventory {
		class Default {
			magazines[] = {"ItemBandage", "ItemPainkiller"};
			weapons[] = {"ItemFlashlight"};
			backpackWeapon = "";
			backpack = "DZ_Patrol_Pack_EP1";
		};
	};
	
	class Meat {
		class Default {
			yield = 2;
			rawfoodtype = "FoodmeatRaw";
		};
		
		class Cow : Default {
			yield = 6;
			rawfoodtype = "FoodbeefRaw";
		};
		
		class Cow01 : Cow {};
		
		class Cow02 : Cow {};
		
		class Cow03 : Cow {};
		
		class Cow04 : Cow {};
		
		class Cow01_EP1 : Cow {};
		
		class Goat : Default {
			yield = 4;
			rawfoodtype = "FoodmuttonRaw";
		};
		
		class Goat01_EP1 : Goat {};
		
		class Goat02_EP1 : Goat {};
		
		class Sheep : Default {
			yield = 4;
			rawfoodtype = "FoodmuttonRaw";
		};
		
		class Sheep01_EP1 : Sheep {};
		
		class Sheep02_EP1 : Sheep {};
		
		class WildBoar : Default {
			yield = 4;
			rawfoodtype = "FoodbaconRaw";
		};
		
		class Hen : Default {
			yield = 2;
			rawfoodtype = "FoodchickenRaw";
		};
		
		class Cock : Hen {};
		
		class DZ_Fin : Default {
			yield = 0;
			rawfoodtype = "FoodSteakRaw";
		};
		
		class DZ_Pastor : DZ_Fin {};
		
		class Rabbit : Default {
			yield = 1;
			rawfoodtype = "FoodrabbitRaw";
		};
	};
	
	class Skins {
		class Default {
			sex = "male";
			playerModel = "Survivor2_DZ";
		};
		
		class Skin_Survivor2_DZ : Default {
			sex = "male";
			playerModel = "Survivor2_DZ";
		};
		
		class Skin_Sniper1_DZ : Default {
			sex = "male";
			playerModel = "Sniper1_DZ";
		};
		
		class Skin_Camo1_DZ : Default {
			sex = "male";
			playerModel = "Camo1_DZ";
		};
		
		class Skin_Rocket_DZ : Default {
			sex = "male";
			playerModel = "Rocket_DZ";
		};
		
		class Skin_Soldier1_DZ : Default {
			sex = "male";
			playerModel = "Soldier1_DZ";
		};
		
		class Skin_RU_Policeman_DZ : Default {
			sex = "male";
			playerModel = "RU_Policeman_DZ";
		};
		
		class Skin_Pilot_EP1_DZ : Default {
			sex = "male";
			playerModel = "Pilot_EP1_DZ";
		};
		
		class Skin_Haris_Press_EP1_DZ : Default {
			sex = "male";
			playerModel = "Haris_Press_EP1_DZ";
		};
		
		class Skin_Ins_Soldier_GL_DZ : Default {
			sex = "male";
			playerModel = "Ins_Soldier_GL_DZ";
		};
		
		class Skin_GUE_Commander_DZ : Default {
			sex = "male";
			playerModel = "GUE_Commander_DZ";
		};
		
		class Skin_Functionary1_EP1_DZ : Default {
			sex = "male";
			playerModel = "Functionary1_EP1_DZ";
		};
		
		class Skin_Priest_DZ : Default {
			sex = "male";
			playerModel = "Priest_DZ";
		};
		
		class Skin_Rocker1_DZ : Default {
			sex = "male";
			playerModel = "Rocker1_DZ";
		};
		
		class Skin_Rocker2_DZ : Default {
			sex = "male";
			playerModel = "Rocker2_DZ";
		};
		
		class Skin_Rocker3_DZ : Default {
			sex = "male";
			playerModel = "Rocker3_DZ";
		};
		
		class Skin_Rocker4_DZ : Default {
			sex = "male";
			playerModel = "Rocker4_DZ";
		};
		
		class Skin_Bandit1_DZ : Default {
			sex = "male";
			playerModel = "Bandit1_DZ";
		};
		
		class Skin_Bandit2_DZ : Default {
			sex = "male";
			playerModel = "Bandit2_DZ";
		};
		
		class Skin_GUE_Soldier_MG_DZ : Default {
			sex = "male";
			playerModel = "GUE_Soldier_MG_DZ";
		};
		
		class Skin_GUE_Soldier_Sniper_DZ : Default {
			sex = "male";
			playerModel = "GUE_Soldier_Sniper_DZ";
		};
		
		class Skin_GUE_Soldier_Crew_DZ : Default {
			sex = "male";
			playerModel = "GUE_Soldier_Crew_DZ";
		};
		
		class Skin_GUE_Soldier_CO_DZ : Default {
			sex = "male";
			playerModel = "GUE_Soldier_CO_DZ";
		};
		
		class Skin_GUE_Soldier_2_DZ : Default {
			sex = "male";
			playerModel = "GUE_Soldier_2_DZ";
		};
		
		class Skin_BanditW1_DZ : Default {
			sex = "female";
			playerModel = "BanditW1_DZ";
		};
		
		class Skin_BanditW2_DZ : Default {
			sex = "female";
			playerModel = "BanditW2_DZ";
		};
		
		class Skin_SurvivorW2_DZ : Default {
			sex = "female";
			playerModel = "SurvivorW2_DZ";
		};
		
		class Skin_SurvivorWpink_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWpink_DZ";
		};
		
		class Skin_SurvivorWsequisha_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWsequisha_DZ";
		};
		
		class Skin_SurvivorWsequishaD_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWsequishaD_DZ";
		};
		
		class Skin_SurvivorWcombat_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWcombat_DZ";
		};
		
		class Skin_SurvivorWdesert_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWdesert_DZ";
		};
		
		class Skin_SurvivorWurban_DZ : Default {
			sex = "female";
			playerModel = "SurvivorWurban_DZ";
		};
		
		class Skin_SurvivorW3_DZ : Default {
			sex = "female";
			playerModel = "SurvivorW3_DZ";
		};
		
		class Skin_Soldier_TL_PMC_DZ : Default {
			sex = "male";
			playerModel = "Soldier_TL_PMC_DZ";
		};
		
		class Skin_Soldier_Sniper_PMC_DZ : Default {
			sex = "male";
			playerModel = "Soldier_Sniper_PMC_DZ";
		};
		
		class Skin_Soldier_Bodyguard_AA12_PMC_DZ : Default {
			sex = "male";
			playerModel = "Soldier_Bodyguard_AA12_PMC_DZ";
		};
		
		class Skin_FR_OHara_DZ : Default {
			sex = "male";
			playerModel = "FR_OHara_DZ";
		};
		
		class Skin_FR_Rodriguez_DZ : Default {
			sex = "male";
			playerModel = "FR_Rodriguez_DZ";
		};
		
		class Skin_CZ_Soldier_Sniper_EP1_DZ : Default {
			sex = "male";
			playerModel = "CZ_Soldier_Sniper_EP1_DZ";
		};
		
		class Skin_Graves_Light_DZ : Default {
			sex = "male";
			playerModel = "Graves_Light_DZ";
		};
		
		class Skin_Drake_Light_DZ : Default {
			sex = "male";
			playerModel = "Drake_Light_DZ";
		};
		
		class Skin_CZ_Special_Forces_GL_DES_EP1_DZ : Default {
			sex = "male";
			playerModel = "CZ_Special_Forces_GL_DES_EP1_DZ";
		};
		
		class Skin_TK_INS_Soldier_EP1_DZ : Default {
			sex = "male";
			playerModel = "TK_INS_Soldier_EP1_DZ";
		};
		
		class Skin_TK_INS_Warlord_EP1_DZ : Default {
			sex = "male";
			playerModel = "TK_INS_Warlord_EP1_DZ";
		};
		
		class Skin_TK_Special_Forces_MG_EP1_DZ : Default {
			sex = "male";
			playerModel = "TK_Special_Forces_MG_EP1_DZ";
		};
		
		class Skin_TK_Soldier_Sniper_EP1_DZ : Default {
			sex = "male";
			playerModel = "TK_Soldier_Sniper_EP1_DZ";
		};
		
		class Skin_TK_Commander_EP1_DZ : Default {
			sex = "male";
			playerModel = "TK_Commander_EP1_DZ";
		};
		
		class Skin_RU_Soldier_Crew_DZ : Default {
			sex = "male";
			playerModel = "RU_Soldier_Crew_DZ";
		};
		
		class Skin_INS_Lopotev_DZ : Default {
			sex = "male";
			playerModel = "INS_Lopotev_DZ";
		};
		
		class Skin_INS_Soldier_AR_DZ : Default {
			sex = "male";
			playerModel = "INS_Soldier_AR_DZ";
		};
		
		class Skin_INS_Soldier_CO_DZ : Default {
			sex = "male";
			playerModel = "INS_Soldier_CO_DZ";
		};
		
		class Skin_INS_Bardak_DZ : Default {
			sex = "male";
			playerModel = "INS_Bardak_DZ";
		};
		
		class Skin_INS_Worker2_DZ : Default {
			sex = "male";
			playerModel = "INS_Worker2_DZ";
		};

		class Skin_CamoWinter_DZN : Default {
			sex = "male";
			playerModel = "CamoWinter_DZN";
		};
		
		class Skin_CamoWinterW_DZN : Default {
			sex = "male";
			playerModel = "CamoWinterW_DZN";
		};
		
		class Skin_Sniper1W_DZN : Default {
			sex = "male";
			playerModel = "Sniper1W_DZN";
		};
	};
};

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  • Similar Content

    • By Venom21
      Появилась такая проблема, нужно закрыть некоторые слоты под одежду, когда на определённый слот одет предмет…
      пример: возьмём экзоскелет от Фидова, там есть две версии которая одеваеться как на тело и ноги, и есть которая одеваться на разгрузку и пояс, так вот, нужно например чтобы при одетом экзаче на тело и ноги слоты под пояс и разгрузку блокировались, либо только под определенные предметы, если есть интерес то цену можем в личке обсудить…
      P.S. Разрешение от Фидова на переделку и переупаковку есть)
    • By CubeIn
      Здарова, уважаемые знатоки, вопрос.
      Мне скриптер скинул скрипт и сказал закинуть её в северную часть, но не указал куда именно. Подскажите пожалуйста, куда мне её деть? 
    • By CubeIn
      Здарова всем!
      У меня срочный вопрос опытным хозяинам серверостроения. Есть ли возможность настроить холод на карте Namalsk? А то слишком холодновато игрокам, а где это настраивать...
  • Our picks

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.