DarkRP:Shipments:ru

Код будет выглядеть вот таким вот образом(Тут указаны подсказки, вместо синтаксиса):

 DarkRP.createShipment("AK47", {               -- Название оружия    model = "models/weapons/w_rif_ak47.mdl",    -- Путь до модели    entity = "weapon_ak472",                    -- Класс    price = 2450,                               -- Цена    amount = 10,                                -- Кол-во оружия в коробке    separate = false,                           -- Необязательное поле: true/false продаются по одному, true - да, false - нет    pricesep = nil,                             -- Необязательное поле: Цена за штуку    noship = false,                             -- Необязательное поле: /buy only = true - Любой игрок может купить, true - да, false - нет.    allowed = {TEAM_GUN},                       -- Необязательное поле: На какой работе можно покупать это оружие    category = "Rifles",                        -- Необязательное поле: Путь до модели коробки })

Вот пример HL2 Pistol:

 DarkRP.createShipment("HL2pistol", {  model = "models/weapons/W_pistol.mdl",    entity = "weapon_pistol",    price = 500,    amount = 10,    separate = false,    pricesep = 200,    noship = false,    allowed = {TEAM_GUN} })


 * TEAM_GUN - в данном случае это торговец оружием, то есть только он сможет купить его и продать другому игроку.

Описание функций:
Shipment("HL2pistol") = Название, показываемое в меню на F4.

"models/weapons/W_pistol.mdl" = Путь до модельки оружия.

"weapon_pistol" = Подтип.

500 = Цена за коробку оружия.

10 = Кол-во оружия в коробке.

false = Могут ли игроки покупать оружие. Если вы установите в этом поле значение true, то игроки смогут покупать по одной штуке, даже если они не торговцы оружием, а если false, то они не смогут купить оружие. Но игрок с профессией продавец оружия, сможет.

200 = Цена оружия за одну штуку.

false = /buy, Если вы установите true, то все игроки смогут купить коробку оружия, а если false, то нет. Но продавец оружия сможет.

{TEAM_GUN} = Список работ, кто может покупать данное оружие. К примеру {TEAM_GUN, TEAM_CHIEF}.

Примеры коробок с оружием из CS:S :
'''Внимание!!! Это только пример! Оружие, указанное ниже, не работает!!!'''.

 -- CS:S Weps DarkRP.createShipment("M249", { model = "models/weapons/w_mach_m249para.mdl",   entity = "weapon_real_cs_m249",   price = 6000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Galil", {  model = "models/weapons/w_rif_galil.mdl",   entity = "weapon_real_cs_galil",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("AK47", {  model = "models/weapons/w_rif_ak47.mdl",   entity = "weapon_real_cs_ak47",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("M4A1", {  model = "models/weapons/w_rif_m4a1.mdl",   entity = "weapon_real_cs_m4a1",   price = 3900,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Famas", {  model = "models/weapons/w_rif_famas.mdl",   entity = "weapon_real_cs_famas",   price = 3900,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("AWP", {  model = "models/weapons/w_snip_awp.mdl",   entity = "weapon_real_cs_awp",   price = 5000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Scout", {  model = "models/weapons/w_snip_scout.mdl",   entity = "weapon_real_cs_scout",   price = 4500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("SteyrAug", {  model = "models/weapons/w_rif_aug.mdl",   entity = "weapon_real_cs_aug",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("SG552", {  model = "models/weapons/w_rif_sg552.mdl",   entity = "weapon_real_cs_sg552",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("G3SG1", {  model = "models/weapons/w_snip_g3sg1.mdl",   entity = "weapon_real_cs_g3sg1",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("SG550", {  model = "models/weapons/w_snip_sg550.mdl",   entity = "weapon_real_cs_sg550",   price = 4000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("UMP45", {  model = "models/weapons/w_smg_ump45.mdl",   entity = "weapon_real_cs_ump_45",   price = 3600,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("P90", {  model = "models/weapons/w_smg_p90.mdl",   entity = "weapon_real_cs_p90",   price = 3500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("TMP", {  model = "models/weapons/w_smg_tmp.mdl",   entity = "weapon_real_cs_tmp",   price = 3500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("MP5", {  model = "models/weapons/w_smg_mp5.mdl",   entity = "weapon_real_cs_mp5a5",   price = 3200,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Mac10", {  model = "models/weapons/w_smg_mac10.mdl",   entity = "weapon_real_cs_mac10",   price = 3000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("AutoShotgun", {  model = "models/weapons/w_shot_xm1014.mdl",   entity = "weapon_real_cs_xm1014",   price = 3000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Shotgun", {  model = "models/weapons/w_shot_m3super90.mdl",   entity = "weapon_real_cs_pumpshotgun",   price = 2500,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Grenade", {  model = "models/weapons/w_eq_fraggrenade.mdl",   entity = "weapon_real_cs_grenade",   price = 15000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Flash", {  model = "models/weapons/w_eq_flashbang_thrown.mdl",   entity = "weapon_real_cs_flash",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Smoke", {  model = "models/weapons/w_eq_smokegrenade.mdl",   entity = "weapon_real_cs_smoke",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("DualElites", {  model = "models/weapons/w_pist_elite_dropped.mdl",   entity = "weapon_real_cs_elites",   price = 2300,   amount = 10,   separate = true,   pricesep = 250,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Deagle", {  model = "models/weapons/w_pist_deagle.mdl",   entity = "weapon_real_cs_desert_eagle",   price = 2300,   amount = 10,   separate = true,   pricesep = 250,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("USP", {  model = "models/weapons/w_pist_usp.mdl",   entity = "weapon_real_cs_usp",   price = 2200,   amount = 10,   separate = true,   pricesep = 240,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("P228", {  model = "models/weapons/w_pist_p228.mdl",   entity = "weapon_real_cs_p228",   price = 2100,   amount = 10,   separate = true,   pricesep = 220,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Glock", {  model = "models/weapons/w_pist_glock18.mdl",   entity = "weapon_real_cs_glock18",   price = 2000,   amount = 10,   separate = true,   pricesep = 210,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("FiveSeven", {  model = "models/weapons/w_pist_fiveseven.mdl",   entity = "weapon_real_cs_five-seven",   price = 1900,   amount = 10,   separate = true,   pricesep = 200,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

DarkRP.createShipment("Knife", {  model = "models/weapons/w_knife_t.mdl",   entity = "weapon_real_cs_knife",   price = 2000,   amount = 10,   separate = false,   pricesep = 0,   noship = false,   allowed = {TEAM_GUN, TEAM_ADMIN} })

Вот пример кода Админ.Полиции:

 TEAM_ADMIN = DarkRP.createJob("Admin Police", {  color = Color(255, 255, 255, 255),    model = "models/player/Combine_Super_Soldier.mdl",    description = The Admin Police is only used by admins, they do the most basic admin things.,    weapons = {"Glock", "StunStick", "Arrest Baton", "Unarrest Baton"},    command = "adminpolice",    max = 3,    salary = 50,    admin = 1,    vote = false,    hasLicense = true,    NeedToChangeFrom = TEAM_POLICE })