vagnerkuntz
New Member
- Joined
- Jun 1, 2012
- Messages
- 45
- Reaction score
- 0
Hi guys
good my script is to do the following if it has the pos he is sent to pos B if B in is sent to the
but there are three positions there the script is sending the pos until the last pos nonstop pod someone help me
here the script
good my script is to do the following if it has the pos he is sent to pos B if B in is sent to the
but there are three positions there the script is sending the pos until the last pos nonstop pod someone help me
here the script
function onStepIn(cid, item, pos)
local t = {
a = {x= 1301, y= 556, z= 7}, b = {x= 1305, y= 559, z= 7},
c = {x= 1301, y= 558, z= 7}, d = {x= 1305, y= 561, z= 7},
e = {x= 1301, y= 557, z= 7}, f = {x= 1305, y= 560, z= 7}
}
if item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.a)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.b)
elseif item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.c)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.d)
elseif item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.e)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.f)
else
return FALSE
end
return TRUE
end
local t = {
a = {x= 1301, y= 556, z= 7}, b = {x= 1305, y= 559, z= 7},
c = {x= 1301, y= 558, z= 7}, d = {x= 1305, y= 561, z= 7},
e = {x= 1301, y= 557, z= 7}, f = {x= 1305, y= 560, z= 7}
}
if item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.a)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.b)
elseif item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.c)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.d)
elseif item.actionid == 3001 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.e)
elseif item.actionid == 3002 and getPlayerStorageValue(cid, 5115) == 1 then
doTeleportThing(cid, t.f)
else
return FALSE
end
return TRUE
end