View Full Version : Player loose golds
Hey how to take off gold from players ?
I tried with:
It didnt work :/ I got like 429k golds instead xD
12-11-2013, 02:07 PM
12-11-2013, 02:18 PM
That is because plr:SetCoinage() resets your gold count from what ever it is to the number of copper you have saet within the ().
Your looking for the command plr:ModifyMoney()
Here is an example of me using it in a command.
function OnChat(event, plr, msg, lang)
-- Adds 100 Gold
if(msg == "#money") then
-- Removes 5 Gold
if(msg == "#nomoney") then
Thank you guys you can lock it now :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.