I'm trying to build a pin protected storage container for users on my server, and I'm using this as a starting point The goal is to make it so that a public user can set and enter a code (via permission blocks), but only a faction member can reset the system.
The problem I'm having is, I need a way to disable the program button once someone has set a code the first time. I've tried all kinds of logic to do this, but I just can't seem to get it right. I got pretty close with some logic using a Flip-Flop that turned on the first time a code was set, but it would get out of sync when I reset the code, and was also prone to failure via spamming the program button.
The problem I'm having is, I need a way to disable the program button once someone has set a code the first time. I've tried all kinds of logic to do this, but I just can't seem to get it right. I got pretty close with some logic using a Flip-Flop that turned on the first time a code was set, but it would get out of sync when I reset the code, and was also prone to failure via spamming the program button.
Attachments
-
3.3 KB Views: 0