• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Time Teleport

Saper1995

Technologic
Joined
Jul 11, 2009
Messages
104
Reaction score
3
Location
Poland
Hello. I need some help with that script

Code:
function onStepIn(cid, item, pos)
if(item.actionid == 4545) and isPlayer(cid) == TRUE then
addEvent(waiting, 5 * 1000, cid)
end
function waiting(cid)
doTeleportThing(cid,mars)
mars = {x=1000, y=1000, z=7} 
end
return true
end

If i step on this tiles and i wait 5 seconds then script don't teleport me to pos MARS. What i need add to script ?

This is a console Description
Code:
[03/04/2012 17:08:13] [Error - MoveEvents Interface] 
[03/04/2012 17:08:13] data/movements/scripts/tp.lua:onStepIn
[03/04/2012 17:08:13] Description: 
[03/04/2012 17:08:13] (luaAddEvent) Callback parameter should be a function.
 
Lua:
	local function waiting(cid)
		mars = {x=1000, y=1000, z=7}
		doTeleportThing(cid, mars)
		return true
	end
function onStepIn(cid, item, pos)
	if(item.actionid == 4545) and isPlayer(cid) == TRUE then
		addEvent(waiting, 5 * 1000, cid)
	end
	return true
end
 
Ok thanks :) it works but how can i block this sqm to walk on him 2 x because if player step in on this sqm 2x then script teleport him 2x. I need only one use.
 
Last edited:
Back
Top