Raised This Month: $ Target: $400
 0% 

Loyalty Plugin 2.1.1 (Updated 10-31-10)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Xsinthis
Senior Member
Join Date: Oct 2008
Location: Canadia, eh?
Plugin ID:
1974
Plugin Version:
2.1.1
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Users can get loyal points by playing on your server and they can buy slots with them.
    Unapprover:
    Reason for Unapproving:
    Various errors and issues left unfixed for months. (See post #43)
    Old 09-28-2010 , 19:47   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #1

    Major Release!(2.1.0)
    -Droped _sourcebans suffix
    -Added automatic Sourceban checker(dropped sm_loyal_sourcebans)
    -Added flatfile support
    -Added fully automatic admin method detection(flatfile, sql, sourcebans)
    -Added admin group use for all methods(untested for MySQL admins)
    -Added bonus points column
    -Added command to modify user's points
    -Cleaned up minor coding issues

    /!\ Important! /!\ Upgrade instructions for 2.0.x to 2.1.x
    With 2.1.x the _sourcebans has been dropped from the file, so when you add the new loyal.smx to your plugins file, you need to remove the old loyal_sourcebans.smx or else run into interferance

    You *must* run the following query on your loyal table:
    Code:
    ALTER TABLE loyal
    ADD bonus INT(8) NOT NULL
    Also, the config file has been renamed to loyal.cfg, just to keep everything named the same.

    New list of cvars(Automatically created in cfg/sourcemod/loyal.cfg)
    Code:
    // Assists required per loyalty point(Warning: Changes in this are retroactive)
    // -
    // Default: "10"
    sm_loyal_assists "10"
    
    // Loyalty point cost per week of reserved slot
    // -
    // Default: "300"
    sm_loyal_cost "300"
    
    // Kills required per loyalty point(Warning: Changes in this are retroactive)
    // -
    // Default: "10"
    sm_loyal_kills "10"
    
    // What Sourcebans Server Group to add loyalty members too(if applicable)
    // -
    // Default: "All Servers"
    sm_loyal_server_group "All Servers"
    
    // Minutes of play required per loyalty point(Warning: Changes in this are retroactive)
    // -
    // Default: "10"
    sm_loyal_time "10"
    
    // User group to add loyalty members too (Sourcebans only)
    // -
    // Default: "Loyal Members"
    sm_loyal_user_group "Loyal Members"
    
    // Version of Loyalty Plugin installed, do not touch
    // -
    // Default: "2.1.0"
    sm_loyal_version "2.1.0"
    __________________
    Xsinthis is offline
    Harley
    Member
    Join Date: Aug 2006
    Old 10-03-2010 , 08:33   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #2

    Nice Plugin
    __________________
    Harley is offline
    Nightbox
    Senior Member
    Join Date: Apr 2008
    Old 10-03-2010 , 09:45   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #3

    gj on releasing it
    __________________
    Nightbox is offline
    arm5ky
    Member
    Join Date: Dec 2007
    Old 01-17-2011 , 04:28   Re: Loyalty Plugin 2.1.1 (Updated 10-31-10)
    Reply With Quote #4

    I only want to award these points to clients who are helping getting the server populated.

    Any way to set a max_client setting to stop giving points when a certain number are on the server.
    arm5ky is offline
    Xsinthis
    Senior Member
    Join Date: Oct 2008
    Location: Canadia, eh?
    Old 10-13-2010 , 11:10   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #5

    depends on how sourcepawns handles division by zero. I'll add an option to disable certain point features in the future. For now i suggest setting it to a really hight value instead
    __________________
    Xsinthis is offline
    joeri86
    New Member
    Join Date: Oct 2010
    Old 10-27-2010 , 08:04   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #6

    Hiya,

    I like this script very much.
    Is there any possibility to implement a nextmap buying feature?

    Thanks in advance,
    Joeri
    joeri86 is offline
    ratonofx
    New Member
    Join Date: Oct 2010
    Old 10-31-2010 , 20:44   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #7

    Line 160:
    Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND imunity > 0", GetTime());

    Should be:

    Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity > 0", GetTime());
    ratonofx is offline
    Xsinthis
    Senior Member
    Join Date: Oct 2008
    Location: Canadia, eh?
    Old 10-31-2010 , 21:39   Re: Loyalty Plugin 2.1.0 (Updated 09-28-10)
    Reply With Quote #8

    Bug Fix Release 2.1.1
    - Fixed typo in a SQL query (thanks ratonofx)
    __________________
    Xsinthis is offline
    ratonofx
    New Member
    Join Date: Oct 2010
    Old 10-31-2010 , 23:28   Re: Loyalty Plugin 2.1.0 (Updated 10-31-10)
    Reply With Quote #9

    I'm experiencing a possible bug or a missmatch configuration. I'm adding admins but they are erased after restart server or change map, seems i'm being removed from admin table and get into loyal table, to back later when got required points. It seems the normal behavior, for a player. But i'm already registered as admin.

    Could you help me please?

    EDIT1:

    I think i found the problem, i just don't know if this fix the problem definitely...


    Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity > 0", GetTime());

    Should be:

    Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity < 2", GetTime());

    Assuming that all admins or users that shouldn't be affected by the loyalty system have immunity greater than 1.

    After change that, admins aren't being removed anymore, no side effect experienced for while.

    Thanks.

    Last edited by ratonofx; 10-31-2010 at 23:54. Reason: Add info.
    ratonofx is offline
    Xsinthis
    Senior Member
    Join Date: Oct 2008
    Location: Canadia, eh?
    Old 10-31-2010 , 23:30   Re: Loyalty Plugin 2.1.0 (Updated 10-31-10)
    Reply With Quote #10

    Sorry i guess i should have been more clear about that. With 2.1.1 i fixed the query that was causing a problem, its supposed to be

    Format(query, sizeof(query), "DELETE FROM sm_admins WHERE adminuntil<%i AND immunity = 0", GetTime());

    I before had a >

    So the immunity level for loyalty members should be 0
    __________________
    Xsinthis is offline
    Reply



    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 18:58.


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