• Create an entity with price based on player parameter
    1 replies, posted
Hi, I'm French so sorry for my English :/ Well, i want to create an entity (MoneyPrinter) with a price and a amount given money based on a player parameter like money (but in fact it's level). For exemple, if the player had 300$, the moneyprinter will cost 30$ and give 3$ If he had 500$, the moneyprinter will cost 50$ and give 5$ It's possible ? I try that but that didn't work => [CODE]local ply = LocalPlayer() local Printer={} Printer.Name = 'MoneyPrinter' Printer.Type = 'printer' Printer.XPPerPrint = 50*ply:getDarkRPVar('level') Printer.MoneyPerPrint = 50*ply:getDarkRPVar('level') Printer.Color = Color(255,255,255,255) Printer.Model = 'models/props_lab/reciever01b.mdl' Printer.Price = 500*ply:getDarkRPVar('level') Printer.Level = 1*ply:getDarkRPVar('level') Printer.Prestige = 0 table.insert(Printers,Printer)[/CODE] That say ply send a nil and i understand why but how to do for what i want ? Thanks for reading
Here is the complete code : [url]http://pastebin.com/2Fz5h5Pv[/url]
Sorry, you need to Log In to post a reply to this thread.