Registration system by PHP
#2

Yes it's possible. You just need to make a basic system registration in php, and connect it to your database game.

When a player connecting on your server, you need just to search the playername (GetPlayerName) in your database, tabel users.
If the name it's fined in your users tabel, then u just need to print out a message, and say there to register first on your website.

On the website, player got register, so the number players grow in your tabel.
Aslo u need to have a field, like user_comfirmed_register, this will need to have a default value, 0.

When the player connecton your server, the name it's fined in the database, users, but the user_comfirmed_register it's 0, so u will print out a message like: The admin did not comfirmed your account, please wait until it's confirmed.

Now, let's come back on the registration website. When a player got registred, the numbers of players in ur tabel grow.
You can use Timer in ur server, and check the tabel users, then when the players in user tabel grow, u print a message on admins like: You have a new registred user[SQLID] [PlayerName][Data/Time] and whatever else u want to printout. If u want to confirm account, type /comfirmaccount [SQLID].

Your command need to use the SQLID to catch the data of the newest player registred. Then u need to upload the user_comfirmed_register to 1.
Reply


Messages In This Thread
Registration system by PHP - by NLDBrian - 25.10.2017, 08:29
Re: Registration system by PHP - by kingmk - 25.10.2017, 09:50
Re: Registration system by PHP - by NLDBrian - 25.10.2017, 09:59

Forum Jump:


Users browsing this thread: 2 Guest(s)