Gostaria de colocar exhausted de 2 segundos para usar este comando novamente na seguinte talk: (Obs: Não retirem nenhuma função da talkaction porfavor).
function onSay(cid, words, param)
end
Gostaria de colocar exhausted de 2 segundos para usar este comando novamente na seguinte talk: (Obs: Não retirem nenhuma função da talkaction porfavor).
function onSay(cid, words, param)
end
function doRemoveAbnormalSpeed(cid)
if not isCreature(cid) or not isPlayer(cid) then return false end
doChangeSpeed(cid, -500)
return true
end
function onSay(cid, words, param)
time = 10
needPremium = false
exhaustTime = 60
if needPremium and not isPremium(cid) then
doPlayerSendTextMessage(cid, 27, "Voce precisa de Premium Account para usar esse comando.")
return true
end
if exhaustion.get(cid, 8554) and exhaustion.get(cid, 8554) > 0 then
doPlayerSendTextMessage(cid, 27, "Por favor, espere "..exhaustion.get(cid, 8554).." segundos para usar esse comando novamente.")
return true
end
doChangeSpeed(cid,200)
addEvent(doRemoveAbnormalSpeed, time*1000, cid)
doCreatureSay(cid, "Strong Haste!", TALKTYPE_ORANGE_1)
exhaustion.set(cid, 8554, exhaustTime)
return true
end
[Show off] Mapping Pokémon (OLD)
[Mapping] Mapinha Johto = Para conferir, clique Aqui
[Mapping] Outland Rock = Para conferir, clique Aqui
[Mapping] Centro Pokémon de Cinnabar e cidade de Hamlin(PxG) = Para conferir, clique Aqui
[Mapping] Antigo Trade Center(PvP) do PxG = Para conferir, clique Aqui
[PDA] Reformulação do level das magias e level dos Pokemons = Para conferir, clique Aqui
[PDA] Comando de Clan sem task = Para conferir, clique Aqui
[Utilitário] OT Restarter by: Gabrielbsales(Featzen) = Para conferir, clique Aqui
[Database] Descriptografia MD5 & SHA1 = Para conferir, clique Aqui
[Scripting] Level Máximo = Para conferir, clique Aqui
if exhaustion.get(cid, 8554) and exhaustion.get(cid, 8554) > 0 then
WHAT ?
Legal essa variável aqui,
local tempopravoltaraonormaldepoisdetercorridobastante = 10
Outra: pra quê usar isso
if isInArray(getPlayersOnline(), cid) then ... end
Se pode usar isso?
if not isCreature(cid) then return true end
Você economiza uma linha.
De qualquer maneira,
local exausted = 2 function onSay(cid, words, param) if not isPremium(cid) then return doPlayerSendCancel(cid, "You need P.A to use speed.") elseif getPlayerStorageValue(cid, 91821) > os.time() then return doPlayerSendCancel(cid, "Wait "..getPlayerStorageValue(cid, 91821).." seconds.") end local tempopravoltaraonormaldepoisdetercorridobastante = 10 function tira() if isInArray(getPlayersOnline(), cid) then doChangeSpeed(cid,-1200) end end doChangeSpeed(cid, 600) addEvent(tira, tempopravoltaraonormaldepoisdetercorridobastante*1000) doCreatureSay(cid, "Strong Haste", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 91821, os.time() + exausted) return true end
Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.
Legal essa variável aqui,
local tempopravoltaraonormaldepoisdetercorridobastante = 10Outra: pra quê usar isso
if isInArray(getPlayersOnline(), cid) then ... endSe pode usar isso?
if not isCreature(cid) then return true endVocê economiza uma linha.
De qualquer maneira,
local exausted = 2 function onSay(cid, words, param) if not isPremium(cid) then return doPlayerSendCancel(cid, "You need P.A to use speed.") elseif getPlayerStorageValue(cid, 91821) > os.time() then return doPlayerSendCancel(cid, "Wait "..getPlayerStorageValue(cid, 91821).." seconds.") end local tempopravoltaraonormaldepoisdetercorridobastante = 10 function tira() if isInArray(getPlayersOnline(), cid) then doChangeSpeed(cid,-1200) end end doChangeSpeed(cid, 600) addEvent(tira, tempopravoltaraonormaldepoisdetercorridobastante*1000) doCreatureSay(cid, "Strong Haste", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 91821, os.time() + exausted) return true end
Nao foi eu que fiz esse script ai, kkkk
[Show off] Mapping Pokémon (OLD)
[Mapping] Mapinha Johto = Para conferir, clique Aqui
[Mapping] Outland Rock = Para conferir, clique Aqui
[Mapping] Centro Pokémon de Cinnabar e cidade de Hamlin(PxG) = Para conferir, clique Aqui
[Mapping] Antigo Trade Center(PvP) do PxG = Para conferir, clique Aqui
[PDA] Reformulação do level das magias e level dos Pokemons = Para conferir, clique Aqui
[PDA] Comando de Clan sem task = Para conferir, clique Aqui
[Utilitário] OT Restarter by: Gabrielbsales(Featzen) = Para conferir, clique Aqui
[Database] Descriptografia MD5 & SHA1 = Para conferir, clique Aqui
[Scripting] Level Máximo = Para conferir, clique Aqui
Opa, eu não me referi a seu código, e sim ao que o autor enviou. e.e
Mas, mesmo com essas minhas observações, mantive o código do jeito que estava (já que foi pedido pelo autor).
Não respondo PMs solicitando suporte. Já existem seções no fórum para isto.