nevix
Tunzodus.net
Hello again,
Someone maybe tell me how i can all player from x to x and from y to y do teleport to specified zone?
Someone maybe tell me how i can all player from x to x and from y to y do teleport to specified zone?
doTeleportThing(tid, pos, true)
Code:for _, pid in ipairs(getOnlinePlayers()) do if getPlayerStorageValue(pid, 25001) == 1 then doTeleportThing(pid,t.center) end end
local function lmsclosed()
broadcastMessage("Last Man Standing event portal closed and event started!", MESSAGE_STATUS_WARNING)
local t = {
from = {x = 32117, y = 32214, z = 7},
to = {x = 32125, y = 32219, z = 7},
center = {x = 32122, y = 32217, z = 6},
minPlayers2 = 1
}
for _, pid in ipairs(getOnlinePlayers()) do
if getPlayerStorageValue(pid, 25001) == 1 then
doTeleportThing(pid,t.center)
end
end
return true
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
for _, pid in ipairs(getOnlinePlayers()) do
if getPlayerStorageValue(pid, 25001) == 0 then
local playerids = getPlayerByName(pid)
doTeleportThing(playerids,pos)
doPlayerSendTextMessage(pid, MESSAGE_INFO_DESCR, "Your storage 25001 is: "..playerids.."")
end
end