Cant get a new item until you reset

Im making a game, and a part of it is that when you press a button you get a random item (gun, sword, flashlight ect.) or a random ability (super speed, super jump ect.)

the player is allowed to have only one. if the player wants another ability/item they need to reset.

so how do i do that they cannot have any other abilities or items until they reset?

if you have any questions, feel free to ask me

hope you can help!

Add an if statement that verifies if the player already has an ability/item and if they already do dont then give them one. you could also make it when the player resets ability/items go away