Raised This Month: $32 Target: $400
 8% 

Achievements API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 03-03-2011 , 07:57   Achievements API
Reply With Quote #1

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

Last edited by mabaclu; 03-03-2011 at 18:25.
mabaclu is offline
marquezs
Member
Join Date: Jun 2010
Old 03-03-2011 , 17:46   Re: Achievements API
Reply With Quote #2

Hi there, I am also very interested in this. I would appreciate if someone could do this or tell me if something like this already exists.

Thanks
marquezs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-03-2011 , 19:46   Re: Achievements API
Reply With Quote #3

PM me if interested. My achievements has a very large API.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode