• Can anyone help me make a script so certain jobs drop money in darkrp?
    4 replies, posted
I am sorry if this isnt the correct place to put this thread but I am neew to facepunch. Anyway, I am making a job in darkrp called sewer creature and they get paid to live in the sewer and kill anyone who ventures down there. But there are sewer creature hunters and I want them to get paid everytime they kill a sewer creature. Can any of you help me make a script so that only a certain job drops money on death?
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
OH MY GOD ms333 :DDD I use your growing weed plant addon in my server :DDDD I didnt think my first post would be responded to by you XD [editline]29th July 2013[/editline] I don't see the drop money on death function. I am sorry if it is in plain view but I am new to lua and I cant find it.
Try this: [lua]PlayerDeath = function(ply) ply:AddMoney(-amount) DarkRPCreateMoneyBag(ply:GetPos(), amount) end[/lua] Edit: Actually you probably should check the players money before taking it. This small piece of code may just give you an idea of the direction. ^^
Thank you for your help :D
Sorry, you need to Log In to post a reply to this thread.