خذ الكود الي انا حطيته لك
الي هو
function getPlayersInColShape(col)
local players = 0
if col and getElementType(col) == "colshape" then
for i,player in ipairs(getElementsByType("player")) do
if isElementWithinColShape(player,col) then
players = players + 1
end
end
end
return players
end
وحطيتلك مثال عليه !