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

[ANY] Player Report


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Plugin ID:
3073
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow your players to report other players.
    Old 07-08-2012 , 17:56   [ANY] Player Report
    Reply With Quote #1

    Pretty simple.

    Anyone can say /report (or sm_report in console) to report a player, for cheating, spamming, being a bully, etc. Once reported, all connected admins are informed of who made the report, who it's against, and for what reason. This same information is also printed to a log.

    Cvar sm_playerreport_delay (def. 30.0) determines how long clients have to wait before reporting again.

    Reports are logged to addons/sourcemod/configs/playerreport_logs.txt...although they should probably be written to the logs folder instead, but that folder's fulla logs and stuff, it'd be hard to find IMO.

    Also, that "ReadConfig" stock might seem familiar, because it's hacked together based on the similar stock in Funcommands X's Happy command.



    playerreport_reasons.txt goes into addons/sourcemod/configs; it's a list of reporting reasons that your players can pick. By default, it contains all the same reasons that sm_ban does if you used it from the adminmenu.
    Attached Files
    File Type: sp Get Plugin or Get Source (playerreport.sp - 5885 views - 5.9 KB)
    File Type: txt playerreport_reasons.txt (178 Bytes, 3112 views)
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 10-17-2012 at 04:12.
    MasterOfTheXP is offline
    hinehine10
    Junior Member
    Join Date: Aug 2011
    Old 07-08-2012 , 17:58   Re: [ANY] Player Report 1.0
    Reply With Quote #2

    Thanks Gonna try it now
    hinehine10 is offline
    Nolongerinthegame
    AlliedModders Donor
    Join Date: Sep 2005
    Old 07-08-2012 , 19:12   Re: [ANY] Player Report 1.0
    Reply With Quote #3

    Without being overly critical, what is the difference (apart from logging and preselected reasons) between this mod and the inbuilt sourcemod function where non-admins can send a message to admins already on the server

    Last edited by Nolongerinthegame; 07-08-2012 at 19:14.
    Nolongerinthegame is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 07-08-2012 , 19:42   Re: [ANY] Player Report 1.0
    Reply With Quote #4

    Quote:
    Originally Posted by nelioneil View Post
    Without being overly critical, what is the difference (apart from logging and preselected reasons) between this mod and the inbuilt sourcemod function where non-admins can send a message to admins already on the server
    Logs and admin messages are probably ignored sometimes...

    Last edited by ReFlexPoison; 07-08-2012 at 19:43.
    ReFlexPoison is offline
    SlimeCounty
    SourceMod Donor
    Join Date: Jun 2011
    Old 07-08-2012 , 19:51   Re: [ANY] Player Report 1.0
    Reply With Quote #5

    Very cool, thanks, will help log some troublemakers while no admins are around, very useful!
    I noticed:

    Code:
    cvarDelay = CreateConVar("sm_playerreport_delay","30.0","Time, in seconds, to delay the target of sm_rocket's death.", FCVAR_NONE,
    I'm guessing this was pieced together from snippets of other code and left unchanged by accident?
    __________________
    SlimeCounty is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 07-08-2012 , 22:36   Re: [ANY] Player Report 1.0
    Reply With Quote #6

    This would be very useful if it fired off something when admins weren't connected - much like to specified email addresses. I have something like this setup now but it brings up a HTML/PHP combo doc which forwards the report to me on my email which is synced to my phone etc etc.
    Horsedick is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 07-09-2012 , 00:35   Re: [ANY] Player Report 1.0
    Reply With Quote #7

    Quote:
    Originally Posted by SlimeCounty View Post
    Time, in seconds, to delay the target of sm_rocket's death.
    I'm guessing this was pieced together from snippets of other code and left unchanged by accident?
    HEHEHEHEHEH. My bad. I'm bad at using CreateConVar, memorizing its args, etc. Fun fact: the variable name of the cvar (cvarDelay) is also unchanged.


    Quote:
    Originally Posted by Horsedick View Post
    This would be very useful if it fired off something when admins weren't connected - much like to specified email addresses. I have something like this setup now but it brings up a HTML/PHP combo doc which forwards the report to me on my email which is synced to my phone etc etc.
    I'll look into doing something like that, although I've never seen a plugin use email before.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

    Last edited by MasterOfTheXP; 07-09-2012 at 00:35.
    MasterOfTheXP is offline
    SlimeCounty
    SourceMod Donor
    Join Date: Jun 2011
    Old 07-09-2012 , 03:35   Re: [ANY] Player Report 1.0
    Reply With Quote #8

    Might want to warn those who also have sourceIRC installed that both plugins use /report, and sourceIRC will block this plugins functionality completely.

    Luckily the ticket module from sourceIRC that uses /report is optional, so users can delete that particular part of the plugin suite and still retain IRC relay functionality as I have, as this plugin is far better suited for our needs.
    Thanks again!
    __________________

    Last edited by SlimeCounty; 07-09-2012 at 04:09. Reason: let's do this smarter...
    SlimeCounty is offline
    matrixmark
    Senior Member
    Join Date: Jun 2010
    Old 07-12-2012 , 04:46   Re: [ANY] Player Report 1.0
    Reply With Quote #9

    This is pretty awesome

    I had a simple something but it didnt log the reportee's steam id and it was getting spammed / abused alot... but this solves that problem and more.

    Thanks
    matrixmark is offline
    red_snow
    SourceMod Donor
    Join Date: Jul 2010
    Location: 127.0.0.1
    Old 08-29-2012 , 20:53   Re: [ANY] Player Report 1.0
    Reply With Quote #10

    Is it possible to connect this plugin to a mysql db ?
    __________________
    red_snow 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 06:11.


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