• Donator Printers
    7 replies, posted
Hey Guyyss, I was wondering how I can get this to work. I want it so the printers can be restricted to donator; Sounds easy enough right? nahhh Im using this script [url]https://scriptfodder.com/scripts/view/1297/custom-donation-system[/url], with this script [url]https://scriptfodder.com/scripts/view/176/rprint[/url] Both which I have purchased but support seems have not help much at all. I attempted to do custom checks but failed and I really dont know what else I can do. I can provide proof of purchases and support tickets if necessary. I do own these scripts. [CODE] rPrint.RegisterPrinterType("Chrome", { Price = 10000, PrintRate = 10, DestroyPayout = 750, Color = Color( 255, 255, 200, 255 ), RechargeCost = 500, CoolerCost = 1000, }) [/CODE] Would I do something like this ? and why didn't this work can anyone explain? [CODE] rPrint.RegisterPrinterType("Chrome", { Price = 10000, PrintRate = 10, DestroyPayout = 750, Color = Color( 255, 255, 200, 255 ), RechargeCost = 500, CoolerCost = 1000, customCheck = function(ply)return Player:GetRank(2) end }) [/CODE] I am a new community and I need this asap so I can release to the public. I would understand if I didnt have donators but I already have donators which need to have access and Im only in development.
Does the RegisterPrintType support customChecks? Also, your syntax is invalid. It should be [code]function(ply) return ply:IsAdmin() end[/code]
I'm not doing usergroups though so that wouldnt work. Like I said I'm using those scripts to avoid that. I tried it and it still didnt work. I attempted this. function(ply) return Player:GetRank(2) end
What is GetRank? Where did he number 2 come from? You're still using Player instead of your ply variable.
If you read my post you would see that I am using a custom donation system inwhich it defines donator groups using id numbers 2 Is my second donator rank GetRank is how it retrieves the rank of the player obviously But I want to restrict it to a specific donator group
But you're sending 2 in as an argument. GetRank looks like an accessor to me; shouldn't you do ply:GetRank() == 2?
Close this please
[IMG]https://i.gyazo.com/f57a7e56de72c89222a57747c72b1639.png[/IMG]
Sorry, you need to Log In to post a reply to this thread.