Jump to content

Serial login


#Paper

Recommended Posts

Posted

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 ? )

Posted
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?

Posted

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!

Posted
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?

Posted

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.

  • 2 weeks later...
Posted

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

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...