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

[ANY] Player Reputations v1.0.4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Addicted.
AlliedModders Donor
Join Date: Dec 2013
Location: 0xA9D0DC
Plugin ID:
5142
Plugin Version:
1.0.4
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players to rate each other, creating a system of reputation.
    Old 04-16-2016 , 02:22   [ANY] Player Reputations v1.0.4
    Reply With Quote #1

    [ANY] Player Reputations

    v1.0.4

    Description:

    This plugin allows players to rate each other creating a system of reputation.
    Originally meant to be used as a reputation system for trade servers to show who are regular sellers/buyers.
    I decided to release this because I haven't done much in terms of public plugins so I want to release some stuff and more are coming soon

    Hasn't really had extensive testing so any bug testers are welcome and appreciated.

    Been working on a custom web page to display reputations and I'll most likely release that later if there is a want for one.
    Meanwhile: http://arcticgaming.net/forums/reputations.php

    Commands:
    • sm_rep <client> - Displays a client's reputation
    • sm_updaterep <client> [amount] <reason> - Updates a reputation to a client
    • sm_addrep <client> [amount] <reason> - Adds reputation to a client

    Admin Commands:
    • sm_clearrep <client> - Clears a client's reputation (Root Admin by default)

    Cvars:
    • rep_display_rep_cmd (sm_rep) - Command used to show a client's rep
    • rep_update_rep_cmd (sm_updaterep) - Command used to update a client's rep
    • rep_add_rep_cmd (sm_addrep) - Command used to add to a client's rep
    • rep_clear_rep_cmd (sm_clearrep) - Command used to clear a client's rep
    • rep_can_multiple_rep (0) - If enabled (1) then users are allowed to give multiple ratings to the same user
    • rep_can_update_rep (1) - If enabled (1) then users are allowed to update previous ratings to a user (Only works with sm_can_multiple_rep set to 0)
    • rep_min_rep (-10) - Lowest rating amount a player can give (Must be lower than sm_max_rep)
    • rep_max_rep (10) - Highest rating amount a player can give (Must be higher than sm_min_rep)
    • rep_chat_prefix (1) - If enabled (1) then a chat prefix will be shown with rep amount (Will change method later)
    • rep_connect_announce (1) - If enabled (1) then an announcement with rep amount will be shown on client connect
    • rep_rep_reasons (1) - If enabled (1) then reasons can be used in ratings

    API:

    Not much for now but you can grab a player's reputation count
    Code:
    /**
     * Gets a client's reputation
     *
     * @param client		Client index.
     * @return				Returns reputation amount
     *
     * @error				Invalid client
     */
    native Reputation_GetRep(int client);
    Installation:

    This plugin requires a MySQL database. It will look for a configuration named "reputation". Example:
    Code:
        "reputation"
        {
            "driver"            "mysql"
            "host"                "example.com"
            "database"            "example_database"
            "user"                "exampleuser"
            "pass"                "examplepassword"
            //"timeout"            "0"
            "port"                "3306"
        }
    Changelog:

    Code:
    v1.0.0 -
    	Initial Release
    v1.0.1 -
    	Fixed checking if can rep with sm_can_multiple_rep set to 0
    	Chnaged auth method from AuthId_Steam2 to AuthId_Engine (Thanks xines)
    v1.0.2 -
    	Fixed some non-escaped strings for MySQL Queries
    v1.0.3 -
    	Minor syntax updates (Thanks xines)
    v1.0.4 -
    	New ConVars to allow easy editing of commands
    Credits:

    Mathiaas - Bug Testing
    August- Annoying me non-stop
    Anyone I forgot I am sorry, please let me now

    Download:
    Attached Files
    File Type: inc reputation.inc (275 Bytes, 663 views)
    File Type: inc colors_csgo.inc (15.5 KB, 602 views)
    File Type: sp Get Plugin or Get Source (reputation.sp - 752 views - 19.0 KB)

    Last edited by Addicted.; 04-28-2016 at 18:16.
    Addicted. is offline
    Mathiaas
    Senior Member
    Join Date: Aug 2014
    Location: Sweden ♥
    Old 04-16-2016 , 02:24   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #2

    Works great and is a cool idea.

    wp
    Mathiaas is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 04-16-2016 , 02:28   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #3

    This awesome, good work!

    I really want to implement this for my Insurgency servers, would be good for squad leaders.
    Maxximou5 is offline
    Addicted.
    AlliedModders Donor
    Join Date: Dec 2013
    Location: 0xA9D0DC
    Old 04-16-2016 , 02:30   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #4

    Quote:
    Originally Posted by Maxximou5 View Post
    This awesome, good work!

    I really want to implement this for my Insurgency servers, would be good for squad leaders.
    Haven't tested on any other games besides CS:GO so please let me know if it runs okay.
    Addicted. is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 04-16-2016 , 04:06   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #5

    Quote:
    Originally Posted by oaaron99 View Post
    Haven't tested on any other games besides CS:GO so please let me know if it runs okay.
    Running into a few problems; otherwise, it's functioning for Insurgency.
    Here's my config:
    Spoiler

    Code:
    [SM] Value of cvar "sm_can_update_rep": "0.000000"
    1. Update convar remains at 0 even after changing it, not allowing me to update a users rep.
    2. Can't give rep to some users: "You have already given reputation to this user.
      1. Even though I haven't given them a rep.
      2. Checked database, that user isn't in there.
    3. I've been given rep, but again, they can't update their rep about me.
    4. Update: tried again, was able to give some users rep, some not.

    Last edited by Maxximou5; 04-16-2016 at 04:08. Reason: Update.
    Maxximou5 is offline
    TheRealToxic
    Senior Member
    Join Date: Jul 2015
    Old 04-16-2016 , 05:02   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #6

    very cool plugin!

    few problems:

    when i add rep to a person, and i try to add it to another it says you already given rep to this player

    when you join it doesnt show the rep


    but cool plugin


    EDIT:

    i think if u gave 1 man a rep then it shows you arleady gave rep to this guy (for every player!)
    or atleast many times it happens that it says you have already give rep but you didnt do that.

    Last edited by TheRealToxic; 04-16-2016 at 05:47.
    TheRealToxic is offline
    Addicted.
    AlliedModders Donor
    Join Date: Dec 2013
    Location: 0xA9D0DC
    Old 04-16-2016 , 08:02   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #7

    Yes I was experiencing something like this last night, I had thought I fixed it but I guess not.

    I'll fix this once I get to a computer later.
    Addicted. is offline
    TheRealToxic
    Senior Member
    Join Date: Jul 2015
    Old 04-16-2016 , 09:26   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #8

    thank you very much my friend!!

    ill be happy if you could fix that
    TheRealToxic is offline
    Hallucinogenic Troll
    Senior Member
    Join Date: Apr 2015
    Old 04-16-2016 , 11:13   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #9

    Maybe I tested this wrong, but it is possible in the next updates to add a cvar which amount of rep he received for playing on the server in X minutes?
    Hallucinogenic Troll is offline
    TheRealToxic
    Senior Member
    Join Date: Jul 2015
    Old 04-16-2016 , 15:00   Re: [ANY] Player Reputations v1.0.0
    Reply With Quote #10

    another problem:

    people can not go under 0 rep. even if u - rep them :/
    TheRealToxic 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 21:23.


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