Hello, I've seen an achievements plugin made by Pastout (
https://forums.alliedmods.net/showthread.php?t=149342) which is great but I'd like to costumize it so that I can make achievements specific for each mod in separate plugins.
So I was wondering if anyone could code an API that saves the data to a mysql database. It would have the following natives:
- native achievement_exists (id) - this would return true or false and then, if the achievement doesn't already exist, the coder would create it using the next native.
- native achievement_new (id, name[]) - the id would be the achievement ID, name would be its name and the quantity would be the ammount of times needed to complete it.
- native achievement_get (playerid, achievementid) - this would return the ammount of times the player has done what's needed to get the achievement
- native achievement_set (id, quantity) - sets the quantity to the specified achievement. For example, the player has got 100 sniper kills and he kills someone again. This would increase the value to 101 in the database.
Thanks in advance