Raised This Month: $32 Target: $400
 8% 

[CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
r3D w0LF
Senior Member
Join Date: Dec 2013
Location: Albania
Plugin ID:
6309
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A poll/survey plugin to get feedback from your players
    Old 10-23-2018 , 14:57   [CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #1

    RW Polls
    A plugin aimed to help server administrators decide what's best for the server. A way of bringing you closer to server players

    What does it do?
    This plugin shows a specific set of questions, that you define, to your players. The information is stored in a mysql database and can be viewed on console.
    Furthermore, it also lets your players submit additional feedback by using !feedback

    What do I need?
    • Sourcemod (It has been developed on version 1.9, but should work on 1.8 or 1.7)
    • MySQL database (doesn't work on SQLite, not yet)

    Where do I start from?
    1. If you already have a MySQL database and know how to set things up, then skip to the next step
      Spoiler
    2. Go to /addons/sourcemod/configs/databases.cfg and create a new entry which should look sth like:
      Spoiler
    3. Upload rwpolls.cfg to /addons/sourcemod/configs/ and edit it to your questions. By default the file contains a question which you may want to remove/replace with yours
    4. Upload rwpolls.smx (click "GET PLUGIN" below) to /addons/sourcemod/plugins/ and restart your server, or a map change can do the trick, or just use this command:
      Code:
      sm_rcon sm plugins load rwpolls
      and you should be ready to go

    COMMANDS
    • sm_showpolls - Gets a list of polls/questions and their search id. ROOT access required
    • sm_getpolldata <SEARCHID> - Returns the results of a poll. Use sm_showpolls to get the SEARCHID. ROOT access required
      https://i.imgur.com/RPRxuLl.png
    • sm_feedback <FEEDBACK> - Player command to submit feedback. !feedback /feedback should work aswell. You might want to use an ADS plugin to advertise this command.
    • sm_getfeedbacks <PAGE> - Command to get feedbacks from database. ROOT access required
      https://i.imgur.com/ePMlZjW.png


    CVARS
    • sm_rwpolls_feedback - Enable/Disable feedback feature, by default it is "1" (enabled)
    • sm_rwpolls_feedbacktime - Minimum time in seconds needed to submit a feedback. I don't recommend you set this too low as players can spam the command. Default is "300" (equal to 5 minutes)

    Adding new polls
    Below is the default rwpolls.cfg, which you may want to modify.
    Spoiler

    "start" and "retry" are reserved keys for poll settings.

    "start" value determines when the vote should start after the player has connected (in seconds), needs to be different for each poll to prevent conflicts between polls

    "retry" value determines whether a vote should run if it failed or some conditions were not met (accepts only yes or no)

    Other keys are the options, the key acts like an ID (and is saved in database) and the value is the option that is sent to the player. The key should be unique among all questions.

    So, adding a new poll which starts after 1 minute looks like:
    Spoiler


    Additional screenshots
    Spoiler


    **TO DO**
    • Multiple Server Support
    • Probably a question ID
    • Map variable in polls
    • Bhop/Timer Integration
    • Web Interface



    READ BELOW
    • There is a maximum of 10 polls at a time, and 10 options per poll. However I DO NOT RECOMMEND you add more than 6 options per poll. Why? Because there are is a maximum of 6 items in a menu per page, which means the other items/options will be on the other page, which a player wont bother to switch to, thus resulting in "fake" data.
    • Don't use a low "start" value, I don't recommend any values below 30. 60+ should be fine (depending on question)
    • Make it a question, don't make it too long, same goes for the options
    • Keep question IDs unique
    • Even tho there is a cvar to use SQLite, it is non-functional, the reason is that I haven't tested whether the queries are compatible with SQLite or not.
    • This plugin should in (my) theory work on other sourcemod servers, if you do test it, please let me know so I can update this to any game
    It is my first ever plugin for sourcemod, or any game ever, so any feedback would be appreciated.

    This plugin has been entirely developed on a working online server, during which time there have been 573+ unique genuine votes.
    Attached Files
    File Type: sp Get Plugin or Get Source (rwpolls.sp - 829 views - 18.7 KB)
    File Type: cfg rwpolls.cfg (485 Bytes, 313 views)

    Last edited by r3D w0LF; 10-25-2018 at 15:41. Reason: TO DO added
    r3D w0LF is offline
    skyler.b
    AlliedModders Donor
    Join Date: Dec 2017
    Location: israel
    Old 10-23-2018 , 23:55   Re: [CSGO/ANY?] RW Polls - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #2

    nice idea
    __________________
    Taking private requests

    part of the gurney is the end.
    skyler.b is offline
    detc
    Junior Member
    Join Date: May 2016
    Old 10-25-2018 , 11:05   Re: [CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #3

    Hi, this is cool but there's a couple ideas I had that would make it more useful:

    - For bhop servers, maybe a special "start" value that triggers a poll when the client reaches the end zone for the first time on that map. I guess this would have to be specific to the timer being used (bhoptimer, surftimer/cksurf, etc).
    - Including the name of the map in poll results.

    Those additions would pretty much make it analogous to how kz-endo's (RIP) rating system worked and would be incredibly useful.
    detc is offline
    r3D w0LF
    Senior Member
    Join Date: Dec 2013
    Location: Albania
    Old 10-25-2018 , 15:48   Re: [CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #4

    Quote:
    Originally Posted by detc View Post
    Hi, this is cool but there's a couple ideas I had that would make it more useful:

    - For bhop servers, maybe a special "start" value that triggers a poll when the client reaches the end zone for the first time on that map. I guess this would have to be specific to the timer being used (bhoptimer, surftimer/cksurf, etc).
    - Including the name of the map in poll results.

    -Those additions would pretty much make it analogous to how kz-endo's (RIP) rating system worked and would be incredibly useful.
    That is quite possible, I might figure out a way to do it,
    there are quite a lot of timers tho, but top 3-4 should do the trick.

    -The map name is also a good idea, I actually might add 2 kind of "map" settings,
    -map value that defines on which map the vote should occur
    -{map} placeholder to put the map name instead

    TO DO added

    Last edited by r3D w0LF; 10-25-2018 at 15:48.
    r3D w0LF is offline
    OcC
    Senior Member
    Join Date: Mar 2012
    Location: Romania
    Old 11-03-2018 , 08:28   Re: [CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #5

    I've been looking for such a plugin for a long time. I look forward to seeing the web page as well. Good idea.
    __________________
    OcC is offline
    Send a message via Yahoo to OcC
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 03-03-2019 , 03:14   Re: [CSGO/ANY?] RW Polls/Survey - Feedback (v1.0 / 23 Oct 2018)
    Reply With Quote #6

    SQLITE support please!!
    __________________
    Taking paid private requests! Contact me
    Cruze 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 09:09.


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