Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MAGNET12
Member
Join Date: Dec 2017
Plugin ID:
6241
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 08-29-2018 , 03:36   AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #1

    << 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:






    Download

    https://github.com/MAGNET1/SourceMod

    or attachment:
    Attached Files
    File Type: zip AchievementsGO.zip (96.5 KB, 291 views)
    __________________

    Last edited by MAGNET12; 05-17-2020 at 08:20.
    MAGNET12 is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 08-29-2018 , 03:42   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #2

    Very nice!
    __________________
    Psyk0tik is offline
    Morell
    AlliedModders Donor
    Join Date: Jun 2010
    Location: World
    Old 08-29-2018 , 05:15   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #3

    Good work, it would be good if the achievements were compatible with the multilanguage.
    __________________

    Last edited by Morell; 08-29-2018 at 05:15.
    Morell is offline
    MAGNET12
    Member
    Join Date: Dec 2017
    Old 08-29-2018 , 07:55   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #4

    Quote:
    Originally Posted by Morell View Post
    Good work, it would be good if the achievements were compatible with the multilanguage.
    Yea, will add it soon
    __________________
    MAGNET12 is offline
    supertimor
    AlliedModders Donor
    Join Date: Sep 2017
    Old 08-30-2018 , 06:31   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #5

    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?
    supertimor is offline
    MAGNET12
    Member
    Join Date: Dec 2017
    Old 08-30-2018 , 07:19   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #6

    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);
    __________________
    MAGNET12 is offline
    supertimor
    AlliedModders Donor
    Join Date: Sep 2017
    Old 08-30-2018 , 07:30   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #7

    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
    mógłbyś mnie dodać? https://steamcommunity.com/id/bonkwszlaufrocku
    supertimor is offline
    8guawong
    AlliedModders Donor
    Join Date: Dec 2013
    Location: BlackMarke7
    Old 08-30-2018 , 08:06   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #8

    Quote:
    Originally Posted by supertimor View Post
    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
    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
    __________________

    Last edited by 8guawong; 08-30-2018 at 08:11.
    8guawong is offline
    deville
    AlliedModders Donor
    Join Date: Oct 2016
    Old 10-02-2018 , 08:05   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #9

    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!
    deville is offline
    DabberDoug
    Member
    Join Date: Feb 2016
    Location: USA
    Old 07-07-2019 , 16:33   Re: AchievementsGO - easy-to-use developer tool for creating your own Achievements
    Reply With Quote #10

    Is it possible to set up a DB to connect this to multiple servers
    DabberDoug 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 04:06.


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