TekaZudo
seuserver.com.br
DESCRIÇÃO
Anuncie aqui neste countdown e dê maior visibilidade ao seu lançamento |
Full Global • Custom Quests • Custom Outfits • Lottery System • Version 15x
Inicia em:
--
Participar
Solutions
-
wandersonnc's post in (Resolvido)Pedido EXIT SIMPLES was marked as the answermovemts script com nome autokick.lua
local config = { tempo = 3, -- Tempo em minutos storage = 20000, -- não mexa aqui teleport = {x=1206, y=754, z=7} -- coordenadas do seu templo } function onStepIn(cid, item, frompos, topos) if isPlayer(cid) == TRUE then if getPlayerStorageValue(cid, config.storage) <= 0 then kick1 = addEvent(setPlayerStorageValue, config.tempo*60*1000-1000, cid, config.storage, -1) kick2 = addEvent(doTeleportThing, config.tempo*60*1000-500, cid, config.teleport) kick = addEvent(doRemoveCreature, config.tempo*60*1000, cid) doPlayerSendTextMessage(cid, 22, "[Trainer]: Movimente-se a cada " .. config.tempo .. " minutos, caso contrário, seu char será deslogado.") setPlayerStorageValue(cid, config.storage, 1) end end end function onStepOut(cid, item, frompos, topos) if isPlayer(cid) == TRUE then if getPlayerStorageValue(cid, config.storage) >= 1 then setPlayerStorageValue(cid, config.storage, -1) doPlayerSendTextMessage(cid, 23, "System kick off!") stopEvent(kick) stopEvent(kick1) stopEvent(kick2) end end end movements script adc a tang
<!-- Auto kick tiles --> <movevent type="StepIn" actionid="25000" event="script" value="autokick.lua"/> <movevent type="StepOut" actionid="25000" event="script" value="autokick.lua"/> achei esse scritp testei deu certo alende kikar manda pro templo e manda msg pro player , OBG A Suicide , e Gantz , pelos scripts porem sou burro e n dei conta obg mesmo abraços...