president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
I wanted a script that you speak up! aol, and you earn yourself a aol
function onSay(cid, words, param, channel)
if doPlayerRemoveMoney(cid, 50000) then return doPlayerAddItem(cid, 2173, 1) and doPlayerSendTextMessage(cid, 20, "You bought an aol.") or doPlayerSendCancel(cid, "You dont have enough money.") end
return true
end
local config = {
price = 10000,
itemid = 2173
};
function onSay(cid, words, param, channel)
if getPlayerMoney(cid) < (config.price) then
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You do not have enough money to buy an AOL, you need " .. config.price .. " gold to buy an AOL!")
else
doPlayerRemoveMoney(cid, (config.price))
doPlayerGiveItem(cid, (config.itemid), 1)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You've bought an AOL.")
end
return true
end
Code:function onSay(cid, words, param, channel) if doPlayerRemoveMoney(cid, 50000) then return doPlayerAddItem(cid, 2173, 1) and doPlayerSendTextMessage(cid, 20, "You bought an aol.") or doPlayerSendCancel(cid, "You dont have enough money.") end return true end
function onSay(cid, words, param, channel)
return doPlayerRemoveMoney(cid, 50000) and doPlayerAddItem(cid, 2173, 1) and doPlayerSendTextMessage(cid, 20, "You bought an aol.") or doPlayerSendCancel(cid, "You dont have enough money.") end
end
He always does that. :SCode:function onSay(cid, words, param, channel) return doPlayerRemoveMoney(cid, 50000) and doPlayerAddItem(cid, 2173, 1) and doPlayerSendTextMessage(cid, 20, "You bought an aol.") or doPlayerSendCancel(cid, "You dont have enough money.") end end
???