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 serversDon'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
-
Our picks
Почему то срабатывает только первый сет
{ player.RemoveAllItems(); EntityAI itemEnt; ItemBase itemBs; switch (Math.RandomInt(0,1)) { case 0: { // Soldier player.GetInventory().CreateInInventory("CargoPants_Black");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Hoodie_Black");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("AthleticShoes_Black");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Chemlight_White");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Apple");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("MakarovIJ70");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");itemBs = ItemBase.Cast(itemEnt); break; } case 1: { // Paramedic player.GetInventory().CreateInInventory("CargoPants_Grey");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Hoodie_Grey");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("SalineBagIV");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("BandageDressing");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Apple");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("AthleticShoes_Grey");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Chemlight_White");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("MakarovIJ70");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");itemBs = ItemBase.Cast(itemEnt); player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");itemBs = ItemBase.Cast(itemEnt); break; } } // Give universal gear itemEnt = player.GetInventory().CreateInInventory("Rag"); itemBs = ItemBase.Cast(itemEnt); itemBs.SetQuantity(4); // SetRandomHealth(itemEnt); player.GetInventory().CreateInInventory("HuntingKnife"); }
Share this post
Link to post
Share on other sites