• How to make "Printers" only doantors
    4 replies, posted
Hello, i have a question about how i can make a printer only for donator it's just give me error when i doing it. here is my code: [CODE]AddEntity("Black Money Printer", { ent = "money_black_printer", model = "models/props_lab/reciever01a.mdl", price = 150000, max = 2, cmd = "/BuyBlackPrinter" function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end })[/CODE]
You need a comma after: cmd = "/BuyBlackPrinter"
AddEntity("Black Money Printer", { ent = "money_black_printer", model = "models/props_lab/reciever01a.mdl", price = 150000, max = 2, cmd = "/BuyBlackPrinter", function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end }) Try that.
[QUOTE=Damnedone;42271692]AddEntity("Black Money Printer", { ent = "money_black_printer", model = "models/props_lab/reciever01a.mdl", price = 150000, max = 2, cmd = "/BuyBlackPrinter", function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end }) Try that.[/QUOTE] Okay thanks it worked, but is there any way to have so 3 ranks can buy it + admins?
Use "or"
Sorry, you need to Log In to post a reply to this thread.