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

[ANY] List disconnections


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Plugin ID:
6467
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Display informations about the last disconnected players.
    Old 03-11-2019 , 16:39   [ANY] List disconnections
    Reply With Quote #1

    Description: This plugin will display informations about the last disconnected players.

    Commands:
    Code:
    sm_disconnections // Show the disconnections list
    ConVars:
    Code:
    sm_disconnections_maxsize 15 // How many players will be shown in the disconnections list?
    Output example:
    Code:
    #   Steam                Name        Ip            Disconnected
    01. STEAM_1:1:123456XX   decoy       192.168.0.1   50s ago
    02. STEAM_1:1:123456XY   Ilusion9    192.168.0.1   3m ago
    03. STEAM_1:1:123456YZ   Fallen      192.168.0.1   1h 47m ago
    GitHub: https://github.com/Ilusion9/list-disconnections-sm
    __________________

    Last edited by Ilusion9; 03-11-2020 at 11:21.
    Ilusion9 is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 03-11-2019 , 21:30   Re: [ANY] Player History (SM 1.10)
    Reply With Quote #2

    Very nice, and you taught me how to do sizeof with enum structs ("PlayerInfo::steam", which is neat).
    404UserNotFound is offline
    BReeZ
    AlliedModders Donor
    Join Date: Feb 2013
    Location: Denmark
    Old 03-28-2019 , 12:05   Re: [ANY] Player History (SM 1.10)
    Reply With Quote #3

    This is useful!

    Feature request:

    Option to have this log based?
    Option to delete logs after x days old?
    Option to disable in-game plugin/log functionality to either use one or the other.
    Possible to add direct steam link to the logs? And to the plugin, which prints link, client only, in the chat?
    __________________
    BReeZ is offline
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 03-29-2019 , 02:07   Re: [ANY] Player History (SM 1.10)
    Reply With Quote #4

    It would be nice if sourcebans were implented to this
    __________________
    iGANGNAM is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 03-29-2019 , 07:28   Re: [ANY] Player History (SM 1.10)
    Reply With Quote #5

    Quote:
    Originally Posted by BReeZ View Post
    Option to have this log based?
    its only in-game.

    Quote:
    Originally Posted by iGANGNAM View Post
    It would be nice if sourcebans were implented to this
    how's that?
    __________________
    Ilusion9 is offline
    iGANGNAM
    AlliedModders Donor
    Join Date: Sep 2012
    Location: Lithuania
    Old 03-29-2019 , 08:04   Re: [ANY] Player History (SM 1.10)
    Reply With Quote #6

    Quote:
    Originally Posted by Ilusion9 View Post
    its only in-game.


    how's that?
    for offline bans, if left so can ban, mute,gag,
    __________________
    iGANGNAM is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 03-31-2019 , 11:09   Re: [ANY] Players History (SM 1.10)
    Reply With Quote #7

    Quote:
    Originally Posted by iGANGNAM View Post
    for offline bans, if left so can ban, mute,gag,
    I don't understand what you are talking about. You can use sourcebans or sourcecomms for that.
    The purpose of this plugin it's like sm_last, to show the last disconnected players.
    __________________
    Ilusion9 is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 09-01-2019 , 21:54   Re: [ANY] List disconnections [SM 1.10]
    Reply With Quote #8

    The source from 12 hours ago on your github doesn't compile with the latest Sourcemod includes.
    Code:
    (369) : warning 219: local variable "time" shadows a variable at a preceding level
    (785) : warning 219: local variable "time" shadows a variable at a preceding level
    (633) : warning 219: local variable "time" shadows a variable at a preceding level
    (15) : error 001: expected token: "{", but found "struct"
    (17) : error 001: expected token: "public", but found "char"
    (18) : error 001: expected token: "}", but found "char"
    (20) : error 054: unmatched closing brace ("}")
    (27) : error 017: undefined symbol "PlayerInfo"
    (27) : error 029: invalid expression, assumed zero
    (27) : warning 215: expression has no effect
    (34) : warning 219: local variable "name" shadows a variable at a preceding level
    (37) : error 104: cannot find any methods for PlayerInfo
    (37) : error 017: undefined symbol "PlayerInfo"
    (37) : error 029: invalid expression, assumed zero
    (37) : fatal error 190: too many error messages on one line

    Last edited by Sreaper; 09-01-2019 at 21:56.
    Sreaper is offline
    freak.exe_uLow
    AlliedModders Donor
    Join Date: Jul 2012
    Location: Germany
    Old 09-02-2019 , 03:43   Re: [ANY] List disconnections [SM 1.10]
    Reply With Quote #9

    Quote:
    Originally Posted by Sreaper View Post
    The source from 12 hours ago on your github doesn't compile with the latest Sourcemod includes.
    Code:
    (369) : warning 219: local variable "time" shadows a variable at a preceding level
    (785) : warning 219: local variable "time" shadows a variable at a preceding level
    (633) : warning 219: local variable "time" shadows a variable at a preceding level
    (15) : error 001: expected token: "{", but found "struct"
    (17) : error 001: expected token: "public", but found "char"
    (18) : error 001: expected token: "}", but found "char"
    (20) : error 054: unmatched closing brace ("}")
    (27) : error 017: undefined symbol "PlayerInfo"
    (27) : error 029: invalid expression, assumed zero
    (27) : warning 215: expression has no effect
    (34) : warning 219: local variable "name" shadows a variable at a preceding level
    (37) : error 104: cannot find any methods for PlayerInfo
    (37) : error 017: undefined symbol "PlayerInfo"
    (37) : error 029: invalid expression, assumed zero
    (37) : fatal error 190: too many error messages on one line
    mhh not really, works without problems
    Attached Files
    File Type: smx listdisconnections.smx (5.0 KB, 181 views)
    File Type: sp Get Plugin or Get Source (listdisconnections.sp - 542 views - 2.3 KB)
    freak.exe_uLow is offline
    Ilusion9
    Veteran Member
    Join Date: Jun 2018
    Location: Romania
    Old 09-02-2019 , 05:25   Re: [ANY] List disconnections [SM 1.10]
    Reply With Quote #10

    Quote:
    Originally Posted by Sreaper
    The source from 12 hours ago on your github doesn't compile with the latest Sourcemod includes.
    Quote:
    Originally Posted by Ilusion9
    You need at least sourcemod 1.10, because this plugin is using enum structs.
    __________________
    Ilusion9 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 20:05.


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