• 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!

Solved Teleport all players in area for TFS 1.1

Hugofasima

Website: thenosegang.servegame.com
Joined
Jun 24, 2015
Messages
206
Reaction score
23
Guys.. I can't do it by myself... I have no idea how to do it xD

This is the only sample I have and TFS 1.1 don't have the function 'getPlayersOnline'. I don't wanna use it at all, it is just an example:
Code:
local t = {
a = {x=x, y=y, z=z}, -- top left corner
b = {x=x, y=y, z=z}, -- bottom right corner
c = {x=x, y=y, z=z} -- where to teleport
}
function onwhatever()
for _, pid in ipairs(getPlayersOnline()) do
if isInRange(pid, t.a, t.b) then
doTeleportThing(pid, t.c)
end
end
return TRUE
end
Thank you Guys!!!!
 
Back
Top