View previous topic :: View next topic |
Author |
Message |
UE1994 How do I cheat? Reputation: 0
Joined: 03 Feb 2017 Posts: 3
|
Posted: Fri Feb 03, 2017 9:44 am Post subject: need help how to add username/password to my trainer ? |
|
|
need help how to add username/password to my trainer ?
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Feb 03, 2017 12:57 pm Post subject: |
|
|
Code: | local value = inputQuery("Login", "Enter your username and password:", "username:password")
if value ~= "zanzer:rules" then
showMessage("Well that was wrong...")
closeCE()
else
showMessage("He does, doesn't he?")
end |
|
|
Back to top |
|
|
akumakuja28 Master Cheater Reputation: 16
Joined: 28 Jun 2015 Posts: 432
|
Posted: Sat Feb 04, 2017 3:51 am Post subject: |
|
|
Im sorry i need to reply here. How do write a trainer and not know how to password protect it?
password protection is Really entry level.
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Feb 04, 2017 6:15 am Post subject: |
|
|
Maybe...
Code: | function keyHit(sender, key)
if key ~= '\r' then return key end
if editKey.Text ~= 'Corroder' and editKey1 ~= 'Test123' then
showMessage("Wrong Passport..Can't enter USA")
editKey.Text = ""
editKey1.Text = ""
return
else
showMessage("Who tell you the password ?")
lblkey.Visible = false
editKey.Visible = false
editKey1.Visible = false
Pnl.Visible = true
lbl2.Visible = true
return
end
end
MyForm = createForm(false)
MyForm.Height = 100
MyForm.Width = 300
Pnl = createPanel(MyForm)
Pnl.Height = 100
Pnl.Width = 300
lblkey = createLabel(Pnl)
lblkey.Top = 10
lblkey.Left = 10
lblkey.Caption = 'Input User Name / Password And Press ENTER :'
lbl2 = createLabel(Pnl)
lbl2.Top = 40
lbl2.Left = 120
lbl2.Caption = "My Trainer"
lbl2.Visible = false
editKey = createEdit(MyForm)
--setProperty(editKey,'EchoMode','emPassword')
editKey.Top = 30
editKey.Left = 10
editKey.Width = 100
editKey.OnKeyPress = keyHit
editKey1 = createEdit(MyForm)
setProperty(editKey1,'EchoMode','emPassword')
editKey1.Top = 60
editKey1.Left = 10
editKey1.Width = 100
editKey1.OnKeyPress = keyHit
MyForm.show() |
Last edited by Corroder on Sat Feb 04, 2017 6:30 am; edited 1 time in total |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
|
Back to top |
|
|
++METHOS I post too much Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sat Feb 04, 2017 3:55 pm Post subject: |
|
|
if they're using CE's trainer generator, that can be done without any coding knowledge, by any newbie.
|
|
Back to top |
|
|
|