AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   AchievementsGO - easy-to-use developer tool for creating your own Achievements (https://forums.alliedmods.net/showthread.php?t=310309)

MAGNET12 08-29-2018 03:36

AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
1 Attachment(s)
<< This plugin is obsolete. New version can be found here >>




Description

It's a really easy-to-use plugin, which allows to create your own Achievements. Everything is based on SQLite and created in a very intuitive way.
All you have to do is upload it on the server and try to create some achievements on your own :)

Commands

Code:

!ac - opens engine's main menu

Example:
Code:

#include <sourcemod>
#include <AchievementsGO>
 
int AGO_Bomb;
 
public OnPluginStart()
{
        HookEvent("bomb_planted", Event_BombPlanted);
}
 
public void AGO_OnRegisterAchievements()
{
        AGO_Bomb = AGO_AddAchievement("Boom!", "Plant 5 bombs", "Pyro path", 5);
}
 
public Action Event_BombPlanted(Handle event, const char[] name, bool dontBroadcast)
{
        int attackerId = GetClientOfUserId(GetEventInt(event, "userid"));
       
        AGO_AddPoint(attackerId, AGO_Bomb);
}

The only requirement for creating Achievement is one native - AGO_AddAchievement. We pass respectively: Name of achievement, its description, catalog and value - that's it.

Achievement can be put on 'folders' - just give catalog's name in the 3rd argument. In game, catalog is marked by sign '>'. If we don't want our achievement in any folder, just leave this argument blank ("")
After you're done, just update a given achievement's status (ie add points), using for example: AGO_AddPoint

Plugin has a lot of natives and forwards to make your development even simpler:
https://github.com/MAGNET1/SourceMod...evementsGO.inc

The accomplished achievement information is shown in HintText and in the chat (chat: all the players)

Screens:
https://go-code.pl/uploads/monthly_2...bce61e259c.jpg

https://go-code.pl/uploads/monthly_2...1f3dbdc67c.jpg

https://go-code.pl/uploads/monthly_2...b528f57bd8.jpg

Download

https://github.com/MAGNET1/SourceMod

or attachment:

Psyk0tik 08-29-2018 03:42

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Very nice!

Morell 08-29-2018 05:15

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Good work, it would be good if the achievements were compatible with the multilanguage.

MAGNET12 08-29-2018 07:55

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Quote:

Originally Posted by Morell (Post 2612698)
Good work, it would be good if the achievements were compatible with the multilanguage.

Yea, will add it soon

supertimor 08-30-2018 06:31

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Ok, but what if i want to register achievments on my own? For example get any mod with classes or levels, and i want to register achievments to do when player will have only certain class?
I mean he can always change his class, and i want to block achievments to do, but save progress.
Ideas? :D

MAGNET12 08-30-2018 07:19

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Assuming you can check what class a certain player has right now, you can use some if statement to decide whether or not Achievement points shall be granted
For instance: if(has_class(client)) AGO_AddPoint(client, AGO_SomeAchievement);

supertimor 08-30-2018 07:30

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
But in !ac i want to show player only achievements for this class.. Class 1 = x achievements, class 2 = y achievements etc and this is what i am talking about, thanks for respond :)

z drugiej mańki, może prościej będzie po polsku :D
mógłbyś mnie dodać? https://steamcommunity.com/id/bonkwszlaufrocku

8guawong 08-30-2018 08:06

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Quote:

Originally Posted by supertimor (Post 2612832)
But in !ac i want to show player only achievements for this class.. Class 1 = x achievements, class 2 = y achievements etc and this is what i am talking about, thanks for respond :)

z drugiej mańki, może prościej będzie po polsku :D
mógłbyś mnie dodać? https://steamcommunity.com/id/bonkwszlaufrocku

so check what player's class is and set the achivement number according to class

sorry i was replying to https://forums.alliedmods.net/showpo...25&postcount=5

deville 10-02-2018 08:05

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
As I've been structuring my ideas of a shared achievement system for my servers - this will be incredibly helpful. Thank you and nice work!

DabberDoug 07-07-2019 16:33

Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
 
Is it possible to set up a DB to connect this to multiple servers


All times are GMT -4. The time now is 05:40.

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