That script will take a data from a mysql server. For example the data could be lives.
I would like that when you start the game the server take your lives in the web site. If you have lives > 0 you can play in the server. but if your lives are = 0 the server disconnect the user.
For example if you have 50 lives in the website. You can play.
But i would like too that if you started the game with 50 lives but you lost your lives playing, the server disconnects the user:
lives + killed = deaths <-- Server disconnect the user
For example if you have 50 lives and you kill 16 users you will have 66 lives but if you dead 66 times you will less all your lives so the server must discconect to the user.
I dont know how to do that. I need help with that script. Could help me?
a lot of thanks