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:
Thank you Guys!!!!
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