function onSay(cid, words, param)
local exhaustiontime = 60 <-- edit here exhaustion time
local storage = 1000 <-- edit to unused storage
local cost = 10000 <-- edit how much it cost
local itemid = 2173
local exh = exhaustion.get(cid, storage)
if not exh then
exh = 0
end
if exh > 0 then
doPlayerSendCancel(cid, "You need wait "..exhaustion.get(cid, storage).." seconds, to use this command again.")
return true
end
if doPlayerRemoveMoney(cid, cost) == TRUE then
doPlayerAddItem(cid, itemid, 1)
doCreatureSay(cid, OH YEA IM PROTECTED BITCHES!", TALKTYPE_SAY)
doSendMagicEffect(getPlayerPosition(cid), 31)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'There You Go!')
else
doPlayerSendCancel(cid, "You need 1 crystal coin to buy a Amulet Of Loss!")
end
if exhaustion.get(cid, storage) and exhaustion.get(cid, storage) > 3 then return true end
exhaustion.set(cid, storage, exhaustiontime)
end
exhaustion.set(cid, storage, 3)
return TRUE
end