You could do something similar to the following:
if keystate(29)=1 and keystate(44)=1 and keystate(56)=1
;here you would put whatever commands apply to your cheat
endif
This statement checks to see if the user is pressing ctrl+alt+z. Using the and/or operators can group conditions and even make multiple conditions do the exact same thing.
These three following code segments are functionally identical:
if keystate(29)=1
if keystate(56)=1
if keystate(44)=1
print "Cheat"
endif
endif
endif
if keystate(29)=1
if keystate(56)=1
if keystate(45)=1
print "Cheat"
endif
endif
endif
if keystate(29)=1 and keystate(56)=1 and keystate(44)=1
print "Cheat"
endif
if keystate(29)=1 and keystate(56)=1 and keystate(45)=1
print "Cheat"
endif
if keystate(29)=1 and keystate(56)=1
if keystate(44)=1 or keystate(45)=1
print "Cheat"
endif
endif
All three check for ctrl+alt+z or ctrl+alt+x, and print "Cheat" if either combos are pressed.
Now, if you want them to be able to type it in, then this is an okay option here:
; c#=0 is not necessary, in DB.
; The very instant you call a variable in DB, it is set as zero.
if keystate(46)=1 then c#=1
if keystate(35)=1 and c#=1 then c#=2
if keystate(18)=1 and c#=2 then c#=3
if keystate(30)=1 and c#=3 then c#=4
if keystate(20)=1 and c#=4 then c#=5
if c#=5 then print "Cheat"
if scancode()<>46 or scancode()<>35 or scancode()<>18 or scancode()<>30 or scancode()<>20 then c#=0
There are
vastly more efficient ways of doing this, but this is the most basic way(No pun intended), and is the easiest to understand.
Although, I don't personally like scancode, because if more than one key is pressed, scancode inherently returns the lower of two values(pretty weird).
If life were like a box of chocolates, I'd know what I would get... The one that got dropped on the floor and put back in the box.
Iye nehvur yoose spehl chehk, ahn mie tippyng izz fiyne.