- Initiateur de la discussion
M
Mehdi2904
Geek suprême
- Messages
- 848
- Score réaction
- 88
- Points
- 145
Bonjour, j'ai mis le customcheck ect pour mes printer mais seulement le premier groupe listé a le droit d'acheté les printers ! Les vip+ peuvent acheté les printer VIP+ & VIP mais les FONDATEUR peuvent pas
DarkRP.createEntity("Printer VIP+ ", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 3,
cmd = "buydiamondprinter",
customCheck = function(ply) return ply:IsUserGroup("vipplus","Fondateur","Co-Fondateur","moderateur") end,
CustomCheckFailMsg = "Vous devez etre VIP+"
})
DarkRP.createEntity("Printer VIP ", {
ent = "gold_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 8000,
max = 3,
cmd = "buygoldprinter",
customCheck = function(ply) return ply:IsUserGroup("vipplus","Fondateur","Co-Fondateur","moderateur","vip") end,
CustomCheckFailMsg = "Vous devez etre VIP"
})
VERT = Personne autorisé a acheté le printer
ROUGE = Personne non autorisé a acheté le printer
DarkRP.createEntity("Printer VIP+ ", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 3,
cmd = "buydiamondprinter",
customCheck = function(ply) return ply:IsUserGroup("vipplus","Fondateur","Co-Fondateur","moderateur") end,
CustomCheckFailMsg = "Vous devez etre VIP+"
})
DarkRP.createEntity("Printer VIP ", {
ent = "gold_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 8000,
max = 3,
cmd = "buygoldprinter",
customCheck = function(ply) return ply:IsUserGroup("vipplus","Fondateur","Co-Fondateur","moderateur","vip") end,
CustomCheckFailMsg = "Vous devez etre VIP"
})
VERT = Personne autorisé a acheté le printer
ROUGE = Personne non autorisé a acheté le printer