local config = {
money = 50000, --How much it costs.
item = 1988 --Edit itemid.
}
function onSay(cid, words, param, channel)
if doPlayerRemoveMoney(cid,config.money) then
doPlayerAddItem(cid,config.item,1)
else
doPlayerSendCancel(cid,"Sorry, but it costs "..config.money.." gold coins.")
end
return true
end