I am currently hosting a DarkRP server. Where I have added an auto demotion for the Mayor when he dies. The next thing what I'd like to do is, give the killer a reward. Sounds simple..
The code goes like this.
Since it's not working properly. I'm doing something wrong.. I'd be very thankful for any help. :)
The error would be nice, unless it's not putting up anything at all. How does DarkRP do AddMoney?
The killer gets a label with the text "Money" in his top left corner of his screen. That's pretty much the error.
I recall I've seen the AddMoney in a SWEP. It was the Pickpocket SWEP.
[url]http://www.facepunch.com/showthread.php?p=14719618[/url]
[QUOTE=DDooby;18098675]The killer gets a label with the text "Money" in his top left corner of his screen. That's pretty much the error.
I recall I've seen the AddMoney in a SWEP. It was the Pickpocket SWEP.
[url]http://www.facepunch.com/showthread.php?p=14719618[/url][/QUOTE]
[lua] killer:SetNWInt("money", killer:GetNWInt("money") + 200) [/lua]
It works, thanks octogon. :D
Sorry, you need to Log In to post a reply to this thread.