scoreboard objectives add summondespawn dummy summondespawn
scoreboard players add @e[type=vatonage:summonskeleton] summondespawn 1
scoreboard players add @e[type=vatonage:summonzombie] summondespawn 1
kill @e[scores={summondespawn=500..}]

gamerule sendcommandfeedback false