darcioantonio
www.adventurerpg.com.br
- Joined
- Jul 30, 2013
- Messages
- 165
- Solutions
- 1
- Reaction score
- 4
- Location
- Brasil
- Twitch
- darcio_
- YouTube
- UCEXCOEw_dYchojHNz
Good afternoon I have this script here.
This script ai causes the char when it passes through the portal of treiner, stay in it for 1 minute there when the 1 minute is kikado out ... the script is of the geito that precizo ....
Well I need a script that when I want to leave the trein in type 10 seconds cancel this script from above because if I put a portal to leave the treiner he will throw me out normal but when I give the time of 1 minute of the Script above he teleports me back to the temple.
Lua:
local min = 1 -- aqui é o tempo em minutos ja esta configurado pra vc
ev = min*1000*60
pos = {x=964 , y=920 , z=7 } -- posição do templo
pos1 = {x=961 , y=916, z=7} -- posição de onde o tp vai levar o player, posicao da arena
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
name = getPlayerName(cid)
local test = min*60
time = os.time() + test
if getPlayerStorageValue(cid, 66116) - os.time() > 0 then
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, 22, ""..name.." voce saiu do evento antes do seu tempo portanto nao podera entrar ate que acabe")
else
setPlayerStorageValue(cid, 66116, time)
doPlayerSendTextMessage(cid, 22, ""..name.." se voce relogar sera transferido ao cp automaticamente")
doTeleportThing(cid, pos1)
addEvent(t, ev, cid, pos)
end
return true
end
function t(cid, pos)
doTeleportThing(cid, pos)
setPlayerStorageValue(cid, 9898, -1)
return true
end
This script ai causes the char when it passes through the portal of treiner, stay in it for 1 minute there when the 1 minute is kikado out ... the script is of the geito that precizo ....
Well I need a script that when I want to leave the trein in type 10 seconds cancel this script from above because if I put a portal to leave the treiner he will throw me out normal but when I give the time of 1 minute of the Script above he teleports me back to the temple.