Hello guys, I would like to add some time to use the command !aol. For example: You can only use command every 10 minutes.
I thank you ...
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 0) == true then
local bp = doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getCreaturePosition(cid),13)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You won an Amulet of Loss.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You do not have enough money.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
I thank you ...