function onSay(cid, words, param)
local cooldown = 10
if (getPlayerStorageValue(cid, 231452) - os.time()) > 0 then
doPlayerSendCancel(cid, "Espere "..(getPlayerStorageValue(cid, 231452) - os.time() ).." segundos para usar o comando novamente.")
return true
end
pos = {x=1023, y=1016, z=6}
doSendMagicEffect(getPlayerPosition(cid),19)
doPlayerSendCancel(cid, "Teleportado!")
doTeleportThing(cid, pos)
setPlayerStorageValue(cid, 231452, (os.time() + cooldown))
return true
end








info
Grupo: Infante
Registrado: 28/01/12
Posts: 1.6k
Reputação: +262
Gênero: Masculino
Alguem poderia adicionar tempo para usar o comando pfv:
function onSay(cid, words, param) pos = {x=1023, y=1016, z=6} doSendMagicEffect(getPlayerPosition(cid),19) doPlayerSendCancel(cid,"Teleportado!") doTeleportThing(cid,pos) end