Jump to content

Serial login


#Paper

Recommended Posts

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?

Link to comment

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!

Link to comment
  • 2 weeks later...

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

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...