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
Sign in to follow this  
DimitriPokki

Стартовый лут

По ковырял инфистар на выдачу лут админам и хотелось бы создать свой скрипт , когда нажимаешь по рацией то випу дается лут , но не получается сделать чтоб это работала 1 раз до слейд смерти 
Сам скрипт
 

if ((getPlayerUID player) in ["0"]) then {  //Admins: Nobody, Somebody
{player removeMagazine _x;} forEach (magazines player);
		removeAllWeapons player;
		removebackpack player;
		player addweapon 'BAF_LRR_scoped';player selectWeapon 'BAF_LRR_scoped';player addMagazine '5Rnd_86x70_L115A1';player addMagazine '5Rnd_86x70_L115A1';player addMagazine '5Rnd_86x70_L115A1';
		player addMagazine '5Rnd_86x70_L115A1';player addMagazine 'Skin_Sniper1_DZ';player addMagazine 'FoodSteakCooked';player addMagazine 'ItemSodaCoke';player addMagazine 'ItemBloodbag';player addMagazine 'ItemPainkiller';
		player addMagazine 'ItemAntibiotic';player addMagazine 'ItemMorphine';player addMagazine 'ItemEpinephrine';player addWeapon 'ItemMap';player addWeapon 'Binocular_Vector';player addweapon 'UZI_SD_EP1';
		player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine '30Rnd_9x19_UZI_SD';player addMagazine 'ItemBandage';
		player addMagazine 'ItemBandage';player addMagazine 'ItemBandage';player addBackPack 'DZ_Backpack_EP1';player addWeapon 'NVGoggles';player addWeapon 'ItemCompass';player addWeapon 'ItemHatchet';player addWeapon 'ItemKnife';
		player addWeapon 'Itemmatchbox';player addWeapon 'Itemetool';player addWeapon 'Itemtoolbox';player addWeapon 'ItemWatch';player addWeapon 'ItemGPS';reload player;
	};
Edited by Dimitri (see edit history)

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
 

if ((getPlayerUID player) in ["0"]) then { 

измени

 

if ((getPlayerUID player) in ["0"]) and (Addweapon <1)) then { 

Addweapon = 1;

 

и в init добавь

Addweapon = 0;

Share this post


Link to post
Share on other sites



  • 0

Благодарю а то винду сменил удалил половину скриптов уже вот и проблема стала с лутом 

Share this post


Link to post
Share on other sites
  • 0

Блин инфи ругается типо за спавн а если оставить дефолтный скрипт то ничего не выдает при нажатий на раций

if ((getPlayerUID player) in ["0"]) and (Addweapon <1)) then { 
    Addweapon = 1;
    {player removeMagazine _x;} forEach (magazines player);
	removeAllWeapons player;
	removebackpack player;
	DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","5Rnd_127x99_as50","ItemMorphine","5Rnd_127x99_as50","ItemPainkiller","ItemBloodbag","HandGrenade_West","ItemWaterbottleBoiled","FoodMRE","Skin_Sniper1_DZ","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD","30Rnd_9x19_UZI_SD"];
	DefaultWeapons = ["UZI_SD_EP1","BAF_AS50_scoped_DZ","ItemEtool","ItemMap","ItemCompass","NVGoggles","ItemKnife","ItemMatchbox","ItemHatchet","ItemToolBox","ItemGPS","ItemCrowbar","Binocular_Vector","ItemRadio"];
	DefaultBackpack = "DZ_LargeGunBag_EP1";
	DefaultBackpackWeapon = [""];
};

А у дефольтный как сделать тоже чтоб 1 раз

 

//Default Loadout
DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"];
DefaultWeapons = ["M9SD","ItemMap","ItemToolbox","ItemHatchet"];
DefaultBackpack = "DZ_ALICE_Pack_EP1"; 
DefaultBackpackWeapon = [""]; 
DefaultBackpackItems = ["ItemPainkiller","ItemBloodbag","FoodCanBakedBeans","ItemSodaOrangeSherbet"];
 

Addweapon = 0;
В самый конец инита ставил 

Edited by Dimitri (see edit history)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • 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.