- Initiateur de la discussion
M
Mehdi2904
Geek suprême
- Messages
- 848
- Score réaction
- 88
- Points
- 145
Bonjour, les joueurs non VIP peuvent faire spawn des printer VIP voici ma ligne de code:
DarkRP.createEntity("Printer VIP+ ", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 3,
cmd = "buydiamondprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin","Superadmin","admin","vip+","Modérateur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez êtres VIP+",
})
DarkRP.createEntity("Printer VIP+ ", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 3,
cmd = "buydiamondprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin","Superadmin","admin","vip+","Modérateur"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez êtres VIP+",
})