Fala Galera Do Tk Blz?
Hoje Estou aqui pedindo a vocês que ajeitem esse script Porfavor creio que seja facil ele estar com 1 erro quando eu uso dps de 30 segundos se transformar quero que quando eu usar dps de 30 segundos Destranforme
Ex: Mode God - Depois De 30 Segundos Ele Volta Para A Trasnfor Que Eu Usei , E Depois Para Usar Presisa Esperar 1 Minuto Para Usar Denovo Aqui o Script
\/
local config = {
exausted = 60,
tempo = 30,
[533] = {800, 534, 692, 114},
[126] = {800, 475, 107, 114}
}
function change(cid)
local voc = config[getPlayerVocation(cid)]
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Se Transformou Em Mode God!")
doCreatureSay(cid, "Mode God", 19)
setPlayerStorageValue(cid, 77889, os.time()+ config.exausted)
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
end
function onSay(cid, words, param, channel)
local voc = config[getPlayerVocation(cid)]
if getPlayerStorageValue(cid, 77889) >= os.time() then
doPlayerSendCancel(cid, "You're exausted.")
return TRUE
end
if isPremium(cid) then
if voc then
if getPlayerLevel(cid) >= voc[1] then
addEvent(change, config.tempo * 1000, cid)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para se Transformar Em Mode God.")
end
else
doPlayerSendCancel(cid, "Nao é possível se transformar em Mode God.")
end
else
doPlayerSendCancel(cid, "You must be premium account to use this command.")
end
return true
end