ZidMC
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help - Keypad [Unanswered]

2 posters

Go down

Help - Keypad [Unanswered] Empty Help - Keypad [Unanswered]

Post by madcrazydrumma Sun May 08, 2011 11:31 am

Hello guys,

umm im thinking of making a keypad lock for doors instead of pressureplates and redstone, etc... so im think a keypad lock which when rightclicked it will come up with numbers 0-9 and people will enter a 4 digit code to get access to the object... and also when placed the keypad will automatically ask the user to enter a 4 digit code for their lock...

so how would i actually go about making this? Rolling Eyes Question Question Question Exclamation Exclamation Exclamation Exclamation Neutral Neutral Neutral bounce bounce

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 28
Location : Dubai

Back to top Go down

Help - Keypad [Unanswered] Empty Re: Help - Keypad [Unanswered]

Post by Ziddia Sun May 08, 2011 11:38 am

I think it would have to be saved to a file- passwords.txt maybe? Then you use a filereader to see what the password is, check if the password is correct, and use an if statement to designate activities for each thing- pass wrong, pass right. Oh yeah, you need a gui too. And you would have to wrap all of this in an if statement to check whether there is already a password for that.

Ziddia
Admin
Admin

Posts : 168
Join date : 2011-04-22

https://zidmc.forumotion.com

Back to top Go down

Help - Keypad [Unanswered] Empty Re: Help - Keypad [Unanswered]

Post by madcrazydrumma Sun May 08, 2011 11:59 am

Ok lol... how exactly would i write that in code Wink
and what happened to your site??

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 28
Location : Dubai

Back to top Go down

Help - Keypad [Unanswered] Empty Re: Help - Keypad [Unanswered]

Post by madcrazydrumma Sun May 08, 2011 1:09 pm

Anyone know how i could make this in code format? i dont know what to start to write :L

madcrazydrumma
ZidMC Coder
ZidMC Coder

Posts : 61
Join date : 2011-04-22
Age : 28
Location : Dubai

Back to top Go down

Help - Keypad [Unanswered] Empty Re: Help - Keypad [Unanswered]

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum