FatHy Posted November 2, 2018 Posted November 2, 2018 (edited) I just want when someone join the server can't create only three 3 accounts that i found but it's one 1 account > bRegisteredOnce = {} function registerPlayer ( source, commandName, username, password ) if(password ~= "" and password ~= nil and username ~= "" and username ~= nil and not bRegisteredOnce[source]) then local accountAdded = addAccount(username,password) if(accountAdded) then outputChatBox("Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login",source) bRegisteredOnce[source] = true else outputChatBox("Error creating account, contact the server admin.",source) end else if bRegisteredOnce[source] == true then outputChatBox("You already registered on this server!",source) else outputChatBox("Error creating account, correct syntax: /register <nick> <pass>",source) end end end my english not good T_T I hope someone can understand me Edited November 2, 2018 by FatHy my bad english :D
Dimos7 Posted November 2, 2018 Posted November 2, 2018 You can check player ip and serial and see if he has account then make sure that player has 3 accounts i will suggest you use a database for that 1
FatHy Posted November 2, 2018 Author Posted November 2, 2018 26 minutes ago, Dimos7 said: You can check player ip and serial and see if he has account then make sure that player has 3 accounts i will suggest you use a database for that How can i check player serial?
FatHy Posted November 2, 2018 Author Posted November 2, 2018 50 minutes ago, Dimos7 said: getPlayerIP getPlayerSerial can you give me example?
Dimos7 Posted November 2, 2018 Posted November 2, 2018 As I said you need store the serial to a database 1
FatHy Posted November 2, 2018 Author Posted November 2, 2018 1 minute ago, Dimos7 said: As I said you need store the serial to a database how ? i'm a noob :v
Dimos7 Posted November 2, 2018 Posted November 2, 2018 5 minutes ago, FatHy said: how ? i'm a noob :v dbConnect dbQuery dbPoll dbExec 1
LyricalMM Posted November 3, 2018 Posted November 3, 2018 use getPlayerSerial, then on register use a database reference on his serial
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