I'm making annihilator but getting lots of errors. I think the problem is "end".
Thx.
Thx.
Code:
local xyz1 = { x = 1901, y = 1934, z = 7 }
local xyz2 = { x = 1902, y = 1934, z = 7 }
local xyz3 = { x = 1903, y = 1934, z = 7 }
local xyz4 = { x = 1904, y = 1934, z = 7 }
local xyzz1 = { x = 1899, y = 1933, z = 8 }
local xyzz2 = { x = 1901, y = 1933, z = 8 }
local xyzz3 = { x = 1903, y = 1933, z = 8 }
local xyzz4 = { x = 1905, y = 1933, z = 8 }
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getThingFromPos(xyz1)) then
if(getThingFromPos(xyz2)) then
if(getThingFromPos(xyz3)) then
if(getThingfromPos(xyz4)) then
doTeleportThing(player1, xyzz1, true)
doTeleportThing(player2, xyzz2, true)
doTeleportThing(player3, xyzz3, true)
doTeleportThing(player4, xyzz4, true)
end
else
doPlayerSendCancel("You need 4 players")
end
end
else
doPlayerSendCancel("You need 4 players")
end
end
else
doPlayerSendCancel("You need 4 players")
end
end
else
doPlayerSendCancel("You need 4 players")
end
end
return true
end