Finally I did it with an array.
A bidimensional array in which I save in the 0 index the room UID and the subsquent index the IID of the enemy spawners when I kill the enemy that belongs to that spawner.
So if I go back to that room, and the IID of the spawner is in the array, it does not spawn anything