Hello
@MrBakels ,
Thanks for your feedback.
The scripts currently allow you to perform the operations that are described on the marketplace page. The functions are "basic" so that anyone can customize the scripts easily according to their needs.
Implementing your two requests is still very simple (just add 1/2 lines of code).
- Anyone can submit scores to leaderboards with
http://yoursite.com/sendscore.php?player=PlayerTest&score=10 , when there is no user defined private_key. That should be added.
For what you are asking, it will be enough for you to simply create a password for the user when starting the game for the first time. Then you can enter the password inside the link of the code sending, and carry out a check before updating the data of your db. Also you can change the names of the link variables, in order to make the link less easy to find.
- When a player called "Poopface" from Ukraine gets 100 points, and later a player "Poopface" from Australia gets 110, the points of the ukranian "Poopface" gets deleted. There should be a unique user_id to track scores & names, instead of regular nickname.
You can solve this problem by adding the user's password, which I told you about a few lines above.
Otherwise, as you said, you can create a unique id (or simply use the unique id that is assigned to the user in the db), and perform a check before updating the score.
Otherwise, when the user creates his nickname, you can check the current score db, and not make the nickname registration valid, if the same name is already present in the db.
These are all very simple operations to do, and I didn't want to insert them to make the script basic and easily customizable, without inserting features that someone might not be interested in.
However if you think that these two functions can be useful to everyone, this weekend I will update the asset, inserting these two options