function onStepIn(cid, item, pos)
place = {x=32716, y=32346, z=7} --Place u want the Tp to go
if getPlayerStorageValue(cid,30) == -1 then
setPlayerStorageValue(cid,30,1)
doTeleportThing(cid,place)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Gratz u went thru the TP!')
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Youve already gone in the TP')
doTeleportThing(cid, fromPosition, TRUE)
end
end
function onStepIn(cid, item, pos)
local place = {x=32716, y=32346, z=7} --Place you want the tp to go
local cidstorage = 1155
local cidpos = getPlayerPosition(cid)
if getPlayerStorageValue(cid, cidstorage) == -1 then
setPlayerStorageValue(cid,30,1)
doTeleportThing(cid, place, FALSE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can pass.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You've already gone there")
doTeleportThing(cid, {x = cidpos.x, y = cidpos.y+1 , z = cidpos.z}, FALSE)
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
local place = {x=1234, y=1234, z=7}
local storage = 1155
if getPlayerStorageValue(cid, storage) ~= 1 then
setPlayerStorageValue(cid, storage, 1)
doTeleportThing(cid, place, FALSE)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can pass.")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You've already been there.")
doTeleportThing(cid, fromPosition, FALSE)
end
return TRUE
end
@Kekox
next godieplx script , why are you setting positions twice as it's already in parameters?
Lua:function onStepIn(cid, item, position, fromPosition) local place = {x=1234, y=1234, z=7} local storage = 1155 if getPlayerStorageValue(cid, storage) ~= 1 then setPlayerStorageValue(cid, storage, 1) doTeleportThing(cid, place, FALSE) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can pass.") else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You've already been there.") doTeleportThing(cid, fromPosition, FALSE) end return TRUE end
Cuz I want and I can. :] Can't I? And your script is the same shit that I post.. You just deleted@Kekox
next godieplx script , why are you setting positions twice as it's already in parameters?
local cidpos = getPlayerPosition(cid)