- Initiateur de la discussion
Han
Nouveau né
- Messages
- 9
- Score réaction
- 1
- Points
- 20
Bonjour, j'ai fais en sorte que quand on se met "IA" on est un material pour faire un peu style hologramme,
mais le problème c'est que quand on change de job après, on à encore le material de l'IA..
le métier:
TEAM_IA = DarkRP.createJob("IA du site", {
color = Color(96, 100, 100, 255),
model = {"models/child.mdl"},
description = [[Niveau 28]],
weapons = {"weapon_keycard_level5"},
command = "iadusite",
max = 1,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
level = 28,
category = "Administration",
PlayerSpawn = function(ply)
ply:SetMaxHealth(9999999)
ply:SetHealth(9999999)
ply:SetWalkSpeed(100)
ply:SetRunSpeed(200)
ply:SetMaterial("models/props_combine/stasisshield_sheet")
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})
mais le problème c'est que quand on change de job après, on à encore le material de l'IA..
le métier:
TEAM_IA = DarkRP.createJob("IA du site", {
color = Color(96, 100, 100, 255),
model = {"models/child.mdl"},
description = [[Niveau 28]],
weapons = {"weapon_keycard_level5"},
command = "iadusite",
max = 1,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
level = 28,
category = "Administration",
PlayerSpawn = function(ply)
ply:SetMaxHealth(9999999)
ply:SetHealth(9999999)
ply:SetWalkSpeed(100)
ply:SetRunSpeed(200)
ply:SetMaterial("models/props_combine/stasisshield_sheet")
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})