lokolokio
Well-Known Member
Hello Im looking for a script with a table but i dont know how to manage tables, the script works something like this:
its not a working function its just an example of what im trying to ask for. I want a script that verifies a players arround and ONLY if a players HP its below 50% he will be added to a table. I hope my explanation its fine thanks.
Code:
local members = getSpectators(pos, 5, 5)
local list = {}
for i = 1, #members do
local m = mebers[i]
local hp = (m:getHealth()/m:getmaxhealth())*100
if hp <= 50 then
table.insert(list, cid)
end
end