im not that great with dark basic pro but my game got leaked by someone on my team and people now play it so i decided to add a security feature what do you guys think of this? can it keep the average person out?
what it does is make you input two security codes and a login name and if it's incorrect the game will end
oh yeah and where a redefine code# and code variables i did another rnd on them to make sure that the values wouldnt be one static number but randomized each time the game starts basically e.g. code# = rnd(0.00) instead of code# = 1.00 that way i felt safer though not sure how much i've accomplished..comments please!
_SECURITY:
ADMIN$ = "UNKNOWN"
code# = rnd(0.00)
code = rnd(000)
input "Input Login Name: ",ADMIN$
input "Input Security Code: ",code#
input "Input Secondary Security Code: ",code
if not code# = 6.66 and code = 666 and ADMIN$ = "Dead_Zone" or ADMIN$ = "War450"
endif
if code# = 6.66 and code = 666 and ADMIN$ = "Dead_Zone" or ADMIN$ = "War450"
sleep 500
cls
sleep 500
print "Processing input one moment."
sleep 10000
cls
sleep 500
`//to prevent hackers from pulling the correct code out from the variables
code# = rnd(4.44)
code = rnd(111)
code$ = "***"
`//.......................................................................
print "Login:",ADMIN$
print "SCN:",code$
print "SCN2:",code$
sleep 9900
cls
sleep 500
print "The following information is being verified please wait a moment..."
sleep 9900
cls
sleep 500
print "Authentication successful please wait a moment."
sleep 20
cls
return
else
cls
sleep 500
print "Wrong Login Details Shutting Down."
wait 500
end
endif
return