tk = {x= 32360, y= 31782, z= 7}tk2 = {x= 32346, y= 32220, z= 7}
tk3 = {x= 32386, y= 31821, z= 6}
tk4 = {x= 32310, y= 32210, z= 6}
tk5 = {x= 32985, y= 31540, z= 1}
tk6 = {x= 32794, y= 31248, z= 7}
tk7 = {x= 33171, y= 31815, z= 7}
tk8 = {x= 31920, y= 32240, z= 9}
function onSay(cid, words, param, channel)
if getTilePzInfo(getPlayerPosition(cid)) then
setPlayerStorageValue(cid,config.s,os.time()+config.exhausth)
if (getPlayerStorageValue(cid, config.s) <= os.time()) then
s = 11548, -- nao mexa
local exhausth = 15 --em quantos segundos podera usar denovo
if(param == 'carlin') then
doTeleportThing(cid,tk)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'thais') then
doTeleportThing(cid, tk2)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'barco carlin') then
doTeleportThing(cid, tk3)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'barco thais') then
doTeleportThing(cid, tk4)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'farmine') then
doTeleportThing(cid, tk5)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'yalahar') then
doTeleportThing(cid, tk6)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'edron') then
doTeleportThing(cid, tk7)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'trainer') then
doTeleportThing(cid, tk8)
doSendMagicEffect(getPlayerPosition(cid), 10)
else
local str = "Palavras para !fly X: \ncarlin \nthais \nbarco carlin \nbarco thais \ntrainer \nfarmine \nedron \nyalahar"
doShowTextDialog(cid, 2160, str)
end
else
doPlayerSendCancel(cid, "Voce so pode usar em area Protect Zone.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
end
end
espero ter ajudado
ate
EDIT :
lordbug99 ja estava arrumado =D Nao irei fazer o outro post para n floodar








info
Grupo: Artesão
Registrado: 31/03/07
Posts: 122
Reputação: +18
Como colocar exhaust de 15 segundos nesta talkaction?
tk = {x= 32360, y= 31782, z= 7} tk2 = {x= 32346, y= 32220, z= 7} tk3 = {x= 32386, y= 31821, z= 6} tk4 = {x= 32310, y= 32210, z= 6} tk5 = {x= 32985, y= 31540, z= 1} tk6 = {x= 32794, y= 31248, z= 7} tk7 = {x= 33171, y= 31815, z= 7} tk8 = {x= 31920, y= 32240, z= 9} function onSay(cid, words, param, channel) if getTilePzInfo(getPlayerPosition(cid)) then if(param == 'carlin') then doTeleportThing(cid,tk) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'thais') then doTeleportThing(cid, tk2) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'barco carlin') then doTeleportThing(cid, tk3) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'barco thais') then doTeleportThing(cid, tk4) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'farmine') then doTeleportThing(cid, tk5) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'yalahar') then doTeleportThing(cid, tk6) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'edron') then doTeleportThing(cid, tk7) doSendMagicEffect(getPlayerPosition(cid), 10) elseif (param == 'trainer') then doTeleportThing(cid, tk8) doSendMagicEffect(getPlayerPosition(cid), 10) else local str = "Palavras para !fly X: \ncarlin \nthais \nbarco carlin \nbarco thais \ntrainer \nfarmine \nedron \nyalahar" doShowTextDialog(cid, 2160, str) end else doPlayerSendCancel(cid, "Voce so pode usar em area Protect Zone.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end endvlw