[CS:GO] AchievementsGO 2.0 - create your own achievements!
I present second release of a plugin, that allows creating your own achievements/missions on the server in easy way. The previous version has had a lot of flaws and it was written in a very poor way. I hope the plugin will come in handy for people, who plan to create its own missions system and look for a comfortable solution :)
How does it work? Plugin gives access to native functions and forwards, that allows for creating your achievements/missions and managing them from any plugin. Thanks to its diversity, it's possible to expand plugins, that already exist (such as Zombie or JailBreak for instance), but also to create standalone plugins - it's up to you. Commands Code:
sm_ac 1. Put package content onto your server (except ago_sample_missions if you don't wish to), 2. Decide where you want informations to be stored - MySQL or SQLite. Depending on your answer, paste the following config in addons/sourcemod/configs/databases.cfg: For SQLite: Code:
"AchievementsGO" Code:
"AchievementsGO" How to create achievement/mission? Here's a sample plugin: Code:
#include <AchievementsGO> Code:
native bool AGO_AddAchievement(char[] Name, char[] Description, char[] Category, int Value, int temporaryID, Function functionCallback); Category - folder, the achievements will be assigned to. It allows easy groupping and organising according to your needs. When leaving this field blank (""), the achievement will remain without any category, Value - amount of points, that needs to be met to consider achievement finished. It can represent anything (ex. amount of required kills, amount of footsteps etc.), TemporaryID - auxiliary identifier, that helps to identify achievement, which will be registered by the engine and its ID will return to the callback. It has to be unique only within the single plugin range, where achievements are being implemented, functionCallback - independent ID is assigned to each mission. This parameter is just a function, where this information will go to. In the previous version, mission's ID was assigned via return (int mission = AGO_AddAchievement...), but it required synchronous and asynchronous queries to be mixed - this solution eliminates the issue. When ID is retrieved (assigned to some variable), we can start adding points to it. Most of the time, AGO_AddPoints will be used (as shown in the example above, where "keyboard master" can be finished by typing 5x !pkt command in the chat), but there are couple of native/forwards, that are available here AchievementsGO.cfg: Code:
// Show chat notification to all players when player finishes achievement? Bare in mind, that every time you make a change (ie add new mission or modify existing one), you should restart your server. Reloading plugin is not enough Available translations: - English, - Polish, - Swedish (by LaGgLs), - French (by Cripix) Updates: 2.0 - first release 2.1 - added "enforce" parameter in functions that add points. It allows to grant points even if there's not enough players on the server Screens (sorry for being lazy and not changing lang to eng. Plugin supports multilang though): https://imgur.com/a/9nxGL7W https://imgur.com/a/F3wTG4n https://imgur.com/a/XLaKtKM GitHub Repo Repository contains AGO engine and sample achievements, that give zephyrus store credits. Feel free to edit it according to your needs |
Re: AchievementsGO 2.0
1 Attachment(s)
Hi, how to use with tibarification shop?
|
Re: AchievementsGO 2.0
This plugin doesn't seem to have any natives that can set the currency. You'd need to modify the plugin and add some
|
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
Could you add a feature to view a sorted list of top players (most accumulated achievements) and specific players?
Example: /ac magnet12 -> for specific player /top_ac ->for list |
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
1 Attachment(s)
Dont know if you want to add it but heres a swedish translations
|
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
Quote:
|
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
Quote:
|
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
@UPDATE
2.1 - added "enforce" parameter in functions that add points. It allows to grant points even if there's not enough players on the server |
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
dude is a great add-on
can you add them for me Code:
[DEAGLE MASTER] |
Re: [CS:GO] AchievementsGO 2.0 - create your own achievements!
How do I fix the error?
[SM] Exception reported: Language phrase "MainMenuTitle" not found (arg 6) [SM] Blaming: AchievementsGO.smx [SM] Call stack trace: [SM] [0] Format [SM] [1] Line 13. E:\sourcemod\scripting\include\AchievementsGO/AchievementsGO_Menu.sp: ShowAchiewementsMenu |
All times are GMT -4. The time now is 17:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.