-
Is it possible to have the player entering a code to have access to a locked car or anything else.
It could maybe start like this. I could addaction to the vehicule like this addaction 'enter a code', code.sqs'
When the player select enter a code, he would be asked to enter a code and if the code is good the vehicule could unlock.
-
It's possible but needs some work. The code can be random too. Basicly, open a dialog that has an edit box, then compare the user entered string to the correct code string.
Search for Vektroboson's dialog tutorial from ofpec.com for making the dialog with the edit box and maybe a button to check the code.
Comparing is simple:
myCode = "qwerty123";
if (ctrlText 100 == myCode) then { hint "Access granted"; };
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules