Achievements API

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Achievements API

Post by greenie »

Description
Achievements API allows you to create, remove and customize your own set of achievements. Achievements are seperated into seperate plugins and registered to a core plugin, to allow complete customization. The API is not just extensive, it allows you to save data either using SQLVault or NFVault.


Installation
Follow these instructions:
Download and extract the achievement_api.zip attached below into your amxmodx folder.
When extracted; compile it locally. (How to compile)
Install plugin (move it from compiled to plugins) and write achievement_api.amxx in your plugins.ini file.

NOTE: achievement_api.amxx MUST be placed on top of the other achievement_*.amxx plugins.
achievement_api.amxx
achievement_addict.amxx
achievement_1337.amxx
achievement_motd.amxx ;(if you want to be able to check your achievements in a MOTD)
Commands

There's only one command available (and only if achievement_motd.amxx is installed):
/achievements - Shows your current achievement progress in a MOTD window

Changelog
v0.0.4:
* Changed plugins: achievement_api.sma
achievement_api.sma:
~ Fixed MySQL saving. SQLite still works if needed.
- Removed api_sql_* cvars (API now uses the amx_sql_* cvars by default)

v0.0.3:
* Changed plugins: achievement_api.sma, achievement_api.inc
* New plugins: achievement_motd.sma
achievement_api.sma:
~ Fixed invalid cellvector issue.
+ Added two new natives: GetAchievementName(), GetAchievementDesc()
achievement_api.inc:
+ Natives

v0.0.2:
* Changed plugins: achievement_api.sma, achievement_addict.sma
* New plugins: colorchat.sma and include file chatcolor.inc (both required for chatcolor; can be disabled if wanted)
achievement_api.sma:
- Removed CZTutor availability for CS 1.6, now only works for CZ.
- Resources removed.
+ Added colorchat to compensate for CZTutor removal.
achievement_addict.sma:
~ Fixed a small bug involving times connected.

v0.0.1:
- Initial Release.
.zip
Post Reply

Return to “Technical/Development”