Hello!
I wonder what is wrong with this script?
If you have 5cc: It takes cash but dont give the aol and send "You have not enough gold."
Thanks for the help!
/Kalle303
I wonder what is wrong with this script?
If you have 5cc: It takes cash but dont give the aol and send "You have not enough gold."
PHP:
local cost = 50000 -- How much does it cost?
local item = 2173 -- What item do you get?
local quantity = 1 -- How many do you get?
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, cost) == 1 then
doPlayerAddItem(cid, item, quantity)
else
doPlayerSendCancel(cid, "You have not enough gold.")
end
return 1
end
/Kalle303