Luke_Ferrara Posted June 15, 2010 Share Posted June 15, 2010 do they log in a player or account and if so how does it work?? if someone could explain in detail I would really appreciate it thank you Link to comment
LonelyRoad Posted June 20, 2010 Share Posted June 20, 2010 Though I'm not a vG scripter and am therefore guessing it's a little like this: Registering -: You register on the site which adds data to a MySQL database and waits for an admin to review your app, at which point they change a variable on your account which may be liked "AdminApproved" to 1, this is then checked ingame (through MySQL Lua code) and it 'asks' the database if the account is approved, if it was they are able to login, otherwise they're told they haven't been approved or haven't registered on the website. Logging in -: The login system makes Lua calls to a MySQL database and checks if the account meets something like the following criteria: -Does the account exist? -Do the login details match what we have on file? -Is the account approved by an admin? (If AdminApproved is 1 your accepted, if 0 then you were either denied/not yet approved) If it meets all of the above criteria it will allow you to login, it then sends you to the character select screen and this is more data lifted from the database related to your account. ^Hope the above answers your question. Link to comment
dzek (varez) Posted June 20, 2010 Share Posted June 20, 2010 Well, i think he won't script this, if he couldnt get that logic by himself Link to comment
LonelyRoad Posted June 20, 2010 Share Posted June 20, 2010 Well, i think he won't script this, if he couldnt get that logic by himself Lol, to me the system is apparently mostly PHP anyways, so he might get so far if he knows PHP? lol. Link to comment
Xierra Posted June 21, 2010 Share Posted June 21, 2010 Hmm, yeah I think Valhalla's login system was so advanced! I really wanna know how they did all those for a simple thing. Valhalla mostly have really advanced scripts, included in the server. I was so pleased if they release at least one of their resources? Link to comment
Luke_Ferrara Posted June 21, 2010 Author Share Posted June 21, 2010 thank you uniqu3 that makes sense i kinda had a hunch it was mySQL related and as for varez....you know there are many ways you could go about this correct? lol maybe you shouldn't post if you have nothing useful to say I was trying to get an idea because I thought the admins who check the application entered the information manually into the database and that would be how they could add donators, admins, ect. but adding an event is also a way to go about it Link to comment
Fenix1042 Posted June 24, 2010 Share Posted June 24, 2010 thank you uniqu3 that makes sense i kinda had a hunch it was mySQL related and as for varez....you know there are many ways you could go about this correct? lol maybe you shouldn't post if you have nothing useful to say I was trying to get an idea because I thought the admins who check the application entered the information manually into the database and that would be how they could add donators, admins, ect. but adding an event is also a way to go about it No event as such, just that the server and PHP-based website both share a database. As for the login, you login to an account, which stores things such as your username, password, email, etc. Then characters are in an alternative table with a field relating them to the account. Source: I'm the Ex-Valhalla Owner / Scripted most of VG, and the entire account system. Link to comment
LonelyRoad Posted June 24, 2010 Share Posted June 24, 2010 No event as such, just that the server and PHP-based website both share a database.As for the login, you login to an account, which stores things such as your username, password, email, etc. Then characters are in an alternative table with a field relating them to the account. Hmm, and that's what I explained in my post. Source: I'm the Ex-Valhalla Owner / Scripted most of VG, and the entire account system. Daniels...Again? I don't ever stop bumping into you do I... ^What server you playing at now or w/e? Link to comment
Fenix1042 Posted June 27, 2010 Share Posted June 27, 2010 I don't play at any server anymore. Working on a few patches for MTA itself, working in real life, etc. Link to comment
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