Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
I have been scripting with my own RP gamemode using a MySQL.
We have been developing tons of ideas for the future UCP, PHP+MySQL.
We are now advancing to the idea, where in players have to register to our webpage & the Testers+ will approve it. However, How can i check if the pAccess is 0 or blah-blah, IN-GAME? If you need questions regardless on how our approval system is gonna work throughout the webpage, FERCOPRO will be replying you ~ The UCP Registration isn't done yet and we are just getting started.
Posts: 184
Threads: 11
Joined: Feb 2010
Reputation:
0
You could add the account into the database with a variable (let's call it PlayerApproved) =0.
When a tester+ confirms the registration, you set PlayerApproved to 1.
Then when the player goes ingame, you can check for rows in MYSQL where username = username and PlayerApproved = 1.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
I am not using the Threaded Version of MySQL, mind if you show me the non threaded one?
Posts: 184
Threads: 11
Joined: Feb 2010
Reputation:
0
What do you mean by non-threaded? Are you using MYSQL Plugin R7?
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
By i mean non threaded, I mean the older version, I am using R5-R6
Posts: 845
Threads: 123
Joined: Dec 2011
Reputation:
0
Something tells me you didn't script your gamemode. Otherwise you'd know how to do this.
So, when they register(on the website) and a tester+ approves it, set a variable - pApproved - to the account. This will then allow them to log in ingame.
So when they're ingame, you check if pApproved is set to 1. If it is, let them log in. This will only work if you're using the same database.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
I have to admit some parts of the gamemode are copy/pasted somewhere in the Tutorial Section, but yeah i scripted some of them (~ I left out some credits to the original author, I didn't just copy/pasted them however some of them are heavily modified by me, 20% (at least) of the script are copy/pasted).
The problem is how could i fetch / read the data for the Approval Part if they aren't registered etc.? It might cause error on the mySQL debug?