Jump to content

smw94

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by smw94

  1. how to restrict visibility of createRadarArea ? i've try some code, but it didn't work this is my code that didn't work local visibilityAffect = {} for i,p in ipairs(getElementsByType("player")) do if getElementData(getPlayerTeam(p), "type") > 1 then table.insert(visibilityAffect,p) end end local radArea = createRadarArea( x, y, sizeX, sizeY, red, green, blue, 130, visibilityAffect) this is not working too local radArea = createRadarArea( x, y, sizeX, sizeY, red, green, blue, 130 ) for i, p in ipairs(getElementsByType("player")) do if getElementData(getPlayerTeam(p), "type") > 1 then setElementVisibleTo(radArea, p, false) end end any help ? thanks before
×
×
  • Create New...