Deputies say Wesley Whitley, 18, and Spruce Lee, 17, shot pellet guns during a baseball game at Charles B. Aycock High School.
They are charged with carrying a weapon on a school campus.
School administrators say two other male students also face disciplinary action for their involvement.
No one was hurt in the incident.
Copyright 2023 by Capitol Broadcasting Company. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.