Raised This Month: $ Target: $400
 0% 

LastX


Post New Thread Reply   
 
Thread Tools Display Modes
Author
hazard
Member
Join Date: Jun 2007
Plugin ID:
108
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Shows the last x users who disconnected, and their corresponding Steam IDs.
    Old 07-29-2007 , 01:27   LastX
    Reply With Quote #1

    LastX by HomicidalApe aka Hazard

    Version 1.2

    Description: Lets an admin type a console command that dumps a list of the last players to disconnect from the server with their Steam IDs. Useful for catching players who may break server rules and leave quickly to avoid a ban, or for catching punks who like to come into a server repeatedly with different names and do something disruptive.

    Commands:
    • lastx : Prints the disconnection history in console.
    • sm_lastxhistory <#> : Sets how many player names+IDs to remember for lastx command. Defaults to 10.
    • sm_lastxbots <0 or 1> : Sets whether or not bots are logged by the plugin. Defaults to 0 (off).
    Credits:
    Thanks to whoever made a very very similar plugin for Source Forts, this was based off that, and thanks to teame06 for tons of help with this plugin.

    Notes:
    I only tested with Counter-Strike Source, I assume it will work with SourceForts and dod:s so I put the game as 'any'.

    Changelog:
    • 1.0 - Initial Release
    • 1.1 - Fixed array resize thing. Thanks to teame06.
    • 1.2 - Added sm_lastxbots to control whether or not the plugin logs bots or not. Defaults to off.
    Attached Files
    File Type: sp Get Plugin or Get Source (lastx.sp - 3405 views - 3.4 KB)

    Last edited by hazard; 08-09-2007 at 01:40. Reason: missing info
    hazard is offline
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 07-30-2007 , 04:20   Re: LastX
    Reply With Quote #2

    nice idea, man. =)
    will test it.
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    Xp3r7
    SourceMod Donor
    Join Date: Jul 2006
    Old 07-30-2007 , 12:45   Re: LastX
    Reply With Quote #3

    Very nice! I like this idea!
    __________________
    Xp3r7 is offline
    Send a message via MSN to Xp3r7
    teame06
    i have a hat
    Join Date: Feb 2005
    Location: Hat City
    Old 07-30-2007 , 15:16   Re: LastX
    Reply With Quote #4

    Here are some changes that you need to do. Use a diff program if you want to see the difference.

    I'll remove this plugin once you see it.

    Attachment removed.
    __________________
    No private support via Instant Message
    GunGame:SM Released

    Last edited by teame06; 07-30-2007 at 16:39.
    teame06 is offline
    Send a message via AIM to teame06
    hazard
    Member
    Join Date: Jun 2007
    Old 07-30-2007 , 16:01   Re: LastX
    Reply With Quote #5

    Updated, thanks teame06. Glad that bug was fixed.

    Last edited by hazard; 07-30-2007 at 16:20.
    hazard is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-01-2007 , 14:33   Re: LastX
    Reply With Quote #6

    Nice idea.

    Adding it to my server now.

    [edit]Hmmm my server locked up as soon as this plugin was enabled.

    I'm using SourceMod 1.0.0.116 on a Windows server - I'll update to the latest SourceMOD build and see if this helps.
    __________________

    Last edited by Extreme_One; 08-01-2007 at 14:53.
    Extreme_One is offline
    hazard
    Member
    Join Date: Jun 2007
    Old 08-01-2007 , 17:41   Re: LastX
    Reply With Quote #7

    Yep update that and you'll be fine.
    hazard is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-01-2007 , 19:52   Re: LastX
    Reply With Quote #8

    Quote:
    Originally Posted by hazard View Post
    Yep update that and you'll be fine.

    Yep plugin loaded and working fine

    Thank you.
    __________________
    Extreme_One is offline
    imported_Anth0ny
    Senior Member
    Join Date: Jan 2005
    Location: Saturn
    Old 08-02-2007 , 02:10   Re: LastX
    Reply With Quote #9

    can you add a support of voice announce for LastX? =)
    __________________
    aka Mad.Eagle
    Creator\Owner\Admin of
    www.megatron.ws
    imported_Anth0ny is offline
    Send a message via ICQ to imported_Anth0ny
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-02-2007 , 04:00   Re: LastX
    Reply With Quote #10

    Quote:
    Originally Posted by imported_Anth0ny View Post
    can you add a support of voice announce for LastX? =)

    Announce what?

    This plugin is a useful tool to find the last (x number) of people to have disconnected from the server, use it if you need to ban somebody that left too quickly for you to have grabbed their STEAM ID.

    Don't see what you need an announcement for.
    __________________
    Extreme_One 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 23:50.


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