1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
players_inside = function(x1, y1, x2, y2) 	local t = player(0, 'tableliving') 	local list = {} 	for i=1, #t do 		local id = t[i] 		local px, py = player(id, 'tilex'), player(id, 'tiley') 		if px >= x1 and px <= x2 and py >= y1 and py <= y2 then 			table.insert(list, id) 		end 	end 	return list end