DarkRP - Donator Money Printers?

On my DarkRP server, I want to add donator entities. I’ve tried this,


AddEntity("Epic Printer", "dubstep_printer", "models/props_c17/consolebox01a.mdl", 10000000, 2, "/buyepicprinter", nil, function(ply) return ply:GetNWString("usergroup") == "Donator" end)

but it doesn’t work? Any suggestions? Thanks.

I’m using ULX Admin Mod.

Try:


AddEntity("Epic Printer", "dubstep_printer", "models/props_c17/consolebox01a.mdl", 10000000, 2, "/buyepicprinter", nil, function(ply) return ply:GetUserGroup() == "donator" end)

Thanks :slight_smile:

I found that the best way to do this with ulx is:


AddEntity("Epic Printer", "dubstep_printer", "models/props_c17/consolebox01a.mdl", 10000000, 2, "/buyepicprinter", nil, function(ply) return ply:CheckGroup("donator") or ply:IsAdmin() end)

Depends on whether you want it to check the UCL inheritance chain or not.

[editline]3rd December 2011[/editline]

also bump much?