PROBLEMES de erreur code

  • Initiateur de la discussion
khokho

khokho

Têtard
Messages
7
Score réaction
0
Points
10
bonjour ser code me genere des erreur en gros ces celui qui a les jobs pourriez vous me dire sce quil je vas pas.

TEAM_CITIZEN = DarkRP.createJob("Prisonnier", {
color = Color(214, 124, 40, 255),
model = {
"models/jbarnes/player/prisoners/jumpsuitm3.mdl",
"models/mark2580/resident2/moira_prisoner_player.mdl",
"models/jbarnes/player/prisoners/jumpsuitm1.mdl",
"models/jbarnes/player/prisoners/jumpsuitm3.mdl",
"models/jbarnes/player/prisoners/jumpsuitm3.mdl",
"models/jbarnes/player/prisoners/jumpsuitm5.mdl",
"models/jbarnes/player/prisoners/jumpsuitm7.mdl",
"models/jbarnes/player/prisoners/jumpsuitm7.mdl",
"models/jbarnes/player/prisoners/jumpsuitm9.mdl"
},
description = [[Vous etes un simple prisonnier.]],
weapons = {},
command = "prisonnier",
max = 25,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "prisonnier"

})
TEAM_POLICE = DarkRP.createJob("STAFF EN SERVICE", {
color = Color(255, 0, 0, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Aller travailler !]],
weapons = {"m9k_barret_m82"},
command = "staff",
max = 5,
salary = 9993,
admin = 1,
vote = false,
hasLicense = true,
candemote = false,
category = "autres",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end

})
TEAM_POLICE = DarkRP.createJob("Chef-Mirador", {
color = Color(0, 3, 54, 255),
model = {
"models/player/PMC_1/PMC__06.mdl",
"models/player/PMC_3/PMC__14.mdl",
"models/player/urban.mdl"
},
description = [[Vous êtes le chef des miradors ! Vous devez empécher les prisonniers de s'échapper et diriger vos troupers ! .]],
weapons = {"m9k_intervention", "m9k_ak47", "awpdragon", "stungun", "arrest_stick"},
command = "chefmirador",
max = 1,
salary = 2300,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "gardiens penitentier",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Tu est mort donc tu a perdu ton job.")
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Tu est mort donc tu a perdu ton job.")
end

})
TEAM_POLICE = DarkRP.createJob("Mirador", {
color = Color(0, 3, 54, 255),
model = {
"models/player/PMC_1/PMC__06.mdl",
"models/player/PMC_3/PMC__14.mdl",
"models/player/urban.mdl"
},
description = [[Vous êtes le chef des miradors ! Vous devez empécher les prisonniers de s'échapper! .]],
weapons = {"m9k_intervention", "m9k_ak47", "awpdragon", "stungun", "weapon_r_handcuffs", "arrest_stick"},
command = "mirador",
max = 5,
salary = 2300,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "gardiens penitentier",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Tu est mort donc tu a perdu ton job.")
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Tu est mort donc tu a perdu ton job.")
end

})
TEAM_POLICE = DarkRP.createJob("gardien penitentier", {
color = Color(0, 10, 255, 255),
model = {"models/player/combine_soldier.mdl"},
description = [[Vous devez faire régner l'ordre dans cet prison.]],
weapons = {"m9k_intervention", "m9k_ak47", "awpdragon", "stungun", "weapon_r_handcuffs", "arrest_stick"},
command = "Garde",
max = 10,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "gardiens penitentier",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Tu est mort donc tu a perdu ton job.")
end

})
TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 27, 255, 255),
model = {
"models/player/kerry-mrssx/policefr_02.mdl",
"models/player/kerry-mrssx/policefr_05.mdl",
"models/player/kerry-mrssx/policefr_08.mdl",
"models/player/kerry-mrssx/policefr_09.mdl"
},
description = [[VOUS PROTEGER LES CIVILS.]],
weapons = {"fas2_ak47", "fas2_glock20", "stungun", "weapon_r_handcuffs"},
command = "policier",
max = 7;:,
salary = 1200,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "unites d'interventions",
NeedToChangeFrom = TEAM_POLICE,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(95)
ply:SetBodygroup(0, 0)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Vous avez perdue votre travaille")
end
})

--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}

DarkRP.addHitmanTeam(TEAM_MOB)
 
D3YM0NYT

D3YM0NYT

Je vie dans un igloo
Messages
154
Score réaction
16
Points
125
Bah recréer 50x TEAM_POLICE, c'est comprenable qu'il y est effectivement un problème oui
 
Discord d'entraide
Rejoignz-nous sur Discord