DarkRP:Shipments:fr

From Official DarkRP Wiki
Revision as of 18:11, 7 November 2015 by Diablos (talk | contribs) (Created page with "{{TOC right}} {{Languages|en=DarkRP:Shipments|ru=DarkRP:Shipments:ru|fr=DarkRP:Shipments:fr}} '''Un shipment (on peut également dire équipement) ressemble à ceci :''' {{C...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


This page is available in the following languages:
Данная версия страницы доступна на следующих языках:
Jarvis-flag 8010.png English | Russia-flag.png Русский | France-flag.png Français


Un shipment (on peut également dire équipement) ressemble à ceci :

AddCustomShipment("<Nom du shipment(pas d'espaces)>",
   "<le model de l'arme(récupérer le world model et non le view model...)>",
   "<la classe de l'équipement>",
   <le prix de l'équipement>,
   <combien d'armes dans un pack d'équipement>,
   <OPTIONNEL: true/false pour vendre séparément>,
   <OPTIONNEL: prix s'il est vendu séparément>,
   <true/false OPTIONNEL: /buy uniquement = true>,
   OPTIONNEL quelles classes (jobs ou customCheck) peuvent acheter cet équipement,
   OPTIONNEL: le model du shipment)

Example: Pistolet HL2:

AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN})


La disposition:

Shipment("HL2pistol") = Le nom affiché dans le menuF4.

"models/weapons/W_pistol.mdl" = Le model de l'arme (JAMAIS UTILISER LES MODELS V_ OU C_).

"weapon_pistol" = L'entité qui sort, pour les armes utilisez le nom du dossier dans /lua/weapons, vous pouvez utilisez les armes de vos addons sans devoir les mettre dans le DarkRP. Pour les entités, utilisez le nom du dossier dans /lua/entities, pareillement vous pouvez utilisez les entités de vos addons sans devoir les mettre dans le DarkRP.

500 = Le prix du shipment entier, peut être changé dans le jeu.

10 = Décide combien d'objets sont stockés dans le shipment (pour acheter des packs d'armes).

false = N'est pas vendu séparément. Si vous mettez cela à true, les joueurs vont acheter juste l'arme et non le pack (par exemple), mettez le à false et il sera uniquement disponible en shipment (pack).

200 = Price when sold separately, you only need to set this if the above is true, this is the cost of just 1 of the entity.

false = /buy uniqueemnt, si vous mettez cela à true vous pouvez uniquement acheter, mettez cela à true et vous serez en mesure d'acheter uniquement par unité, pas en pack.

{TEAM_GUN} = Les teams qui peuvent acheter le shipment, utilisez le TEAM_. Vous pouvez ajouter plus de 1 team en les séparant avec des virgules, exemple: {TEAM_GUN, TEAM_CHIEF}.

Voici quelques exemples de shipment

ATTENTION: Vous avez besoin de Counter-Strike Source Realistic Weapons 4 , Vous pouvez l'obtenir ici.

-- CS:S Weapons
   AddCustomShipment("M249", "models/weapons/w_mach_m249para.mdl", "weapon_real_cs_m249", 6000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Galil", "models/weapons/w_rif_galil.mdl", "weapon_real_cs_galil", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("AK47", "models/weapons/w_rif_ak47.mdl", "weapon_real_cs_ak47", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("M4A1", "models/weapons/w_rif_m4a1.mdl", "weapon_real_cs_m4a1", 3900, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Famas", "models/weapons/w_rif_famas.mdl", "weapon_real_cs_famas", 3900, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("AWP", "models/weapons/w_snip_awp.mdl", "weapon_real_cs_awp", 5000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Scout", "models/weapons/w_snip_scout.mdl", "weapon_real_cs_scout", 4500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("SteyrAug", "models/weapons/w_rif_aug.mdl", "weapon_real_cs_aug", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("SG552", "models/weapons/w_rif_sg552.mdl", "weapon_real_cs_sg552", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("G3SG1", "models/weapons/w_snip_g3sg1.mdl", "weapon_real_cs_g3sg1", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("SG550", "models/weapons/w_snip_sg550.mdl", "weapon_real_cs_sg550", 4000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("UMP45", "models/weapons/w_smg_ump45.mdl", "weapon_real_cs_ump_45", 3600, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("P90", "models/weapons/w_smg_p90.mdl", "weapon_real_cs_p90", 3500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("TMP", "models/weapons/w_smg_tmp.mdl", "weapon_real_cs_tmp", 3500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("MP5", "models/weapons/w_smg_mp5.mdl", "weapon_real_cs_mp5a5", 3200, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Mac10", "models/weapons/w_smg_mac10.mdl", "weapon_real_cs_mac10", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("AutoShotgun", "models/weapons/w_shot_xm1014.mdl", "weapon_real_cs_xm1014", 3000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Shotgun", "models/weapons/w_shot_m3super90.mdl", "weapon_real_cs_pumpshotgun", 2500, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Grenade", "models/weapons/w_eq_fraggrenade.mdl", "weapon_real_cs_grenade", 15000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Flash", "models/weapons/w_eq_flashbang_thrown.mdl", "weapon_real_cs_flash", 2000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Smoke", "models/weapons/w_eq_smokegrenade.mdl", "weapon_real_cs_smoke", 2000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("DualElites", "models/weapons/w_pist_elite_dropped.mdl", "weapon_real_cs_elites", 2300, 10, true, 250, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Deagle", "models/weapons/w_pist_deagle.mdl", "weapon_real_cs_desert_eagle", 2300, 10, true, 250, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("USP", "models/weapons/w_pist_usp.mdl", "weapon_real_cs_usp", 2200, 10, true, 240, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("P228", "models/weapons/w_pist_p228.mdl", "weapon_real_cs_p228", 2100, 10, true, 220, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Glock", "models/weapons/w_pist_glock18.mdl", "weapon_real_cs_glock18", 2000, 10, true, 210, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("FiveSeven", "models/weapons/w_pist_fiveseven.mdl", "weapon_real_cs_five-seven", 1900, 10, true, 200, false, {TEAM_GUN, TEAM_ADMIN})
   AddCustomShipment("Knife", "models/weapons/w_knife_t.mdl", "weapon_real_cs_knife", 2000, 10, false, 0, false, {TEAM_GUN, TEAM_ADMIN})

Il y'a une team Admin qui peut acheter également les shipments, donc les vendeurs d'armes et les admins peuvent les acheter.

Voici le code pour un job Admin si vous voulez l'utilisez, lisez le guide pour ajouter des jobs personnalisés si vous n'êtes pas sûr de comment s'en servir.

TEAM_ADMIN = AddExtraTeam("Admin Police",
     color = Color(255,255,255,255),
     model = "models/player/Combine_Super_Soldier.mdl",
     description = [[Les policiers admins sont utilisés uniquement par les admins, ils font la plupart des choses de base.]],
     weapons = {"stunstick", "arrest_stick", "unarrest_stick"},
     command = "adminpolice",
     max = 3,
     salary = 50,
     admin = 1,
     vote = false,
     hasLicense = true,
     NeedToChangeFrom = TEAM_POLICE