function onSay(cid, words, param)
local time = X -- tempo em segundos.
local storage = X -- storage.
if getPlayerStorageValue(cid, storage) - os.time() <= 0 then
if doPlayerRemoveItem(cid,2160,10) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Desbugou!")
doSendMagicEffect(getPlayerPosition(cid), 12)
setPlayerStorageValue(cid, storage, os.time()+time)
addLevel(cid, 1)
else
doPlayerSendCancel(cid, "Presisa De 10 Gold Para Desbugar!")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Presisa De 10 Gold Para Desbugar!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "Você só poder usar esse script a cada "..time.." Segundos.")
end
end






info
Grupo: Campones
Registrado: 16/07/12
Posts: 9
Reputação: 0
Quero coloca Tempo Nessa Scripts Para os Player Nao fica usando Toda hr alguem me ajuda pfv?
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,2160,10) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Desbugou!")
doSendMagicEffect(getPlayerPosition(cid), 12)
addLevel(cid, 1)
else
doPlayerSendCancel(cid, "Presisa De 10 Gold Para Desbugar!")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Presisa De 10 Gold Para Desbugar!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
Editado Março 31 por DelsonShoes