#Paper Posted April 15, 2011 Posted April 15, 2011 Hey all! How can i make an autologin by serial on join just for admins?
CowTurbo Posted April 15, 2011 Posted April 15, 2011 i think yea, if you make somesort of player serial save ( maybe somewhere to .xml ) and then see is playerserial == xmlserial then log him in ( save pass,user to xml too ? )
#Paper Posted April 15, 2011 Author Posted April 15, 2011 i think yea, if you make somesort of player serial save ( maybe somewhere to .xml ) and then see is playerserial == xmlserial then log him in ( save pass,user to xml too ? ) Mhhh, it's ok as idea, but i never can understand XML programming, can you help me just whit saving and loading serial, pass and acc name?
Arran Posted April 15, 2011 Posted April 15, 2011 The easiest way to do it (but least easy to add to) would be like this: serToAcc = { ["Put their serial here"] = "Put their account name here", ["Put their serial here"] = "Put their account name here", ["Put their serial here"] = "Put their account name here", } function checkJoiners() local serial = getPlayerSerial(source) if (serToAcc[serial]) then logIn(source, getAccount(serToAcc[serial])) end end addEventHandler("onPlayerJoin", root, checkJoiners) I wouldn't recommend using auto login based on serials, just incase somebody had or got the same serial but if you're not concerned about security much then go for it!
CowTurbo Posted April 16, 2011 Posted April 16, 2011 How can i make an autologin by serial on join just for admins? You wanna autologin only for admins ? Why the serial is needed then ?
#Paper Posted April 16, 2011 Author Posted April 16, 2011 How can i make an autologin by serial on join just for admins? You wanna autologin only for admins ? Why the serial is needed then ? and so what is needed?
Arran Posted April 16, 2011 Posted April 16, 2011 Their serial, cowTurbo doesn't know what he is talking about it. Just use the example I showed you if its only for a few people.
bandi94 Posted April 25, 2011 Posted April 25, 2011 Arran you are sure two person have same serial i am not that sure : your serial number is to long (31) and your serial is formated by your computer :- HDD - components so in all world if are 2 persons whit some serial bk HDD have different serials you will not found 2 HDD whit 1 serial and 2 your components you have HDD CPU RAM and sound card min so 0.001% 2 identic serial numbers
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now