• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Aol System

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
 
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
 
Easier to edit IMO.

LUA:
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

Code:
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

???
 
Code:
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. :S
 
Back
Top