Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Tested On Synapse X
- ]]--
- key = "Key" -- Put Key Here.
- function getKey() -- Don't Touch If You Don't Know What Are You Doing.
- rconsoleprint("Enter key: ")
- local key = rconsoleinput()
- return key
- end
- function checkKey(enteredKey) -- Don't Touch If You Don't Know What Are You Doing.
- local correctKey = key
- if enteredKey == correctKey then
- return true
- else
- return false
- end
- end
- while true do
- local key = getKey()
- if checkKey(key) then
- rconsoleprint("Correct key!\n")
- -- Put Here Script
- break
- else
- rconsoleprint("Incorrect key, please try again.\n")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement