local createpos = {x=966,y=989,z=10} local topos = {x=880,y=1003,z=7} local msg = "Last man standing event TP has now closed! It will open again in 45 minutes!" local timetoclose = 120 -- in second local function remove() local tp = getTileItemById(createpos,1387).uid if tp ~= 0 then doRemoveItem(tp) doBroadcastMessage(msg) end end function onSay(cid, words, param, channel) if getTileItemById(createpos,1387).uid ~= 0 then return doPlayerSendCancel(cid, 'The teleport is already in place.') end local tp = doCreateItem(1387, 1, createpos) doItemSetAttribute(tp, "aid", 37720) doBroadcastMessage("Last man standing event TP is now open!\nCatch the teleport within "..timetoclose.." seconds quickly! Located in Enigma temple.") addEvent(remove,timetoclose*1000) return true end