- Initiateur de la discussion
KMS [FR]
Geek
- Messages
- 154
- Score réaction
- 13
- Points
- 65
bonjour, j'ai un problème: tout mes jobs ont accès à ces entités alors que pourtant elles sont assignées à la team DISTIL. J'ai fais une erreur?
Merci d'avance voici les scripts.
Script entités:
DarkRP.createEntity( "Raisin", {
ent = "wm_grapes",
model = "models/grapes/grapes.mdl",
price = 5,
max = 5,
cmd = "buyrai",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Concasseur de raisin", {
ent = "wm_crusher",
model = "models/props_wasteland/laundry_basket001.mdl",
price = 100,
max = 1,
cmd = "buyconca",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Orge", {
ent = "am_barley",
model = "models/alcoholmod/barley.mdl",
price = 3,
max = 10,
cmd = "buyorg",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Processeur d'orge", {
ent = "am_barleyproc",
model = "models/alcoholmod/barleyproc.mdl",
price = 200,
max = 1,
cmd = "buyorgproc",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Chaudiere", {
ent = "am_boiler",
model = "models/props_c17/TrapPropeller_Engine.mdl",
price = 300,
max = 1,
cmd = "buychaud",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Houblon", {
ent = "am_hops",
model = "models/props_lab/cactus.mdl",
price = 5,
max = 3,
cmd = "buyhoubl",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Botanique", {
ent = "am_botanical",
model = "models/props/de_inferno/flower_barrel.mdl",
price = 5,
max = 3,
cmd = "buybot",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Spirit neutre", {
ent = "am_neutralspirit",
model = "models/props_wasteland/laundry_basket001.mdl",
price = 20,
max = 1,
cmd = "buyspirt",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Pot", {
ent = "am_potstill",
model = "models/gibs/airboat_broken_engine.mdl",
price = 250,
max = 1,
cmd = "buypot",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Livre d'instruction", {
ent = "am_book",
model = "models/alcoholmod/book.mdl",
price = 10,
max = 1,
cmd = "buylivre",
allowed = {TEAM_DISTIL},
})
et le script du job
TEAM_DISTIL = DarkRP.createJob("Distillateur d'alcool", {
color = Color(209, 166, 166, 255),
model = "models/sirgibs/ragdolls/hl2/fisherman_player.mdl",
description = [[Vous etes un fabriquant d'alcool. Vous ne devez pas printer mais vous avez le droit a un fusil (categorie 3) uniquement pour vous defendre si quelqu'un tente de s'introduire dans votre infrastructure.]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "pocket", "keys"},
command = "disti",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyens actifs",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le distillateur a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Le distillateur est mort et a ete demote.")
end
end
})
comme on voit la team s'accorde bien
Merci d'avance voici les scripts.
Script entités:
DarkRP.createEntity( "Raisin", {
ent = "wm_grapes",
model = "models/grapes/grapes.mdl",
price = 5,
max = 5,
cmd = "buyrai",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Concasseur de raisin", {
ent = "wm_crusher",
model = "models/props_wasteland/laundry_basket001.mdl",
price = 100,
max = 1,
cmd = "buyconca",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Orge", {
ent = "am_barley",
model = "models/alcoholmod/barley.mdl",
price = 3,
max = 10,
cmd = "buyorg",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Processeur d'orge", {
ent = "am_barleyproc",
model = "models/alcoholmod/barleyproc.mdl",
price = 200,
max = 1,
cmd = "buyorgproc",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Chaudiere", {
ent = "am_boiler",
model = "models/props_c17/TrapPropeller_Engine.mdl",
price = 300,
max = 1,
cmd = "buychaud",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Houblon", {
ent = "am_hops",
model = "models/props_lab/cactus.mdl",
price = 5,
max = 3,
cmd = "buyhoubl",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Botanique", {
ent = "am_botanical",
model = "models/props/de_inferno/flower_barrel.mdl",
price = 5,
max = 3,
cmd = "buybot",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Spirit neutre", {
ent = "am_neutralspirit",
model = "models/props_wasteland/laundry_basket001.mdl",
price = 20,
max = 1,
cmd = "buyspirt",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Pot", {
ent = "am_potstill",
model = "models/gibs/airboat_broken_engine.mdl",
price = 250,
max = 1,
cmd = "buypot",
allowed = {TEAM_DISTIL},
})
DarkRP.createEntity( "Livre d'instruction", {
ent = "am_book",
model = "models/alcoholmod/book.mdl",
price = 10,
max = 1,
cmd = "buylivre",
allowed = {TEAM_DISTIL},
})
et le script du job
TEAM_DISTIL = DarkRP.createJob("Distillateur d'alcool", {
color = Color(209, 166, 166, 255),
model = "models/sirgibs/ragdolls/hl2/fisherman_player.mdl",
description = [[Vous etes un fabriquant d'alcool. Vous ne devez pas printer mais vous avez le droit a un fusil (categorie 3) uniquement pour vous defendre si quelqu'un tente de s'introduire dans votre infrastructure.]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "pocket", "keys"},
command = "disti",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyens actifs",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le distillateur a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Le distillateur est mort et a ete demote.")
end
end
})
comme on voit la team s'accorde bien