Raised This Month: $168 Target: $400
 42% 

[Any] Status GREP - Partial SteamID Search


Post New Thread Reply   
 
Thread Tools Display Modes
Author
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Plugin ID:
2466
Plugin Version:
1.1.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow to search for partial steamIDs and easily get someone's ID.
    Old 07-28-2011 , 19:47   [Any] Status GREP - Partial SteamID Search
    Reply With Quote #1

    Status GREP - Partial SteamID Search

    v. 1.1.1

    Intent of this plugin :
    • To avoid finding a player #id, steamID or a player name in the huge wall of text that is given by the "status" command in console. Useful if you want to quickly check someone's steamID (i.e. without opening console), or if your server has many players.

    Click image for larger version

Name:	demo1.1.png
Views:	584
Size:	17.9 KB
ID:	111759 (Note that bot's steamId is BOT (obviously) )

    Features (Admin Commands) :
    • <sm_findname|say !findname> <partial name> to get information on players having a part of their name having the "partial name".
    • <sm_steamid|say !steamid> <partial steamID> to get information on players having a part of their steamID having the "partial steamID".
    • <sm_sgrep|say !sgrep> <string> to get information on information on players having either or both their name and steamID as a part of the sought string.
    • The information returned is always the player #id, his full name and their full steamID. See the image above for an example of how it is presented. Note that BOT is the steamId for Bots )>^.^)>.
    • A maximum of 3 matching players are presented at a time, as people with long name could have not been displayed at a certain level.

    Known bugs :
    • None

    CVars :
    • statusgrepversion: Gives version -_-'
    • sgrep : Is the plugin enabled ? 0 = no, 1 = yes. Def. 1.

    --------------

    Any suggestions/comments on the code or the plugin are welcomed and appreciated.

    Changelog :
    • 1.0.0 Initial release. (28-07-2011)
    • 1.0.1 Removed useless code. Added FCVAR_DONTRECORD (even if no .cfg). (12-08-2012)
    • Approved by asherkin. Thanks! (12-08-2012)
    • 1.1.0 (02-11-2012)
      • Added player #id in the replied string (also called userid). Didn't know at that time that it could be used for commands :$. See image above for a picture of it.
      • Shortened phrases (and corrected typo in FR). You may want to redownload them.
    • 1.1.1 Updated code for SM 1.7/2.0 (07-03-2015)
      • Replaced GetClientAuthString by GetClientAuthId
      • Using 2.0 syntax
      • Removed FCVAR_REPLICATED
      • Removed FCVAR_NOTIFIED from a non-version cvar

    Todo list :
    • None at the moment. You're free to suggest things ;).

    Notes :
    • This was only tested on Counter-Strike : Source, but there is no reason why it shouldn't work on any other games.
    Attached Files
    File Type: txt statusgrep.phrases.txt (417 Bytes, 110 views)
    File Type: sp Get Plugin or Get Source (statusgrep.sp - 149 views - 5.8 KB)
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 03-07-2015 at 23:10. Reason: 1.1.1 ; 29phdl187sp
    RedSword is offline
    asherkin
    SourceMod Developer
    Join Date: Aug 2009
    Location: OnGameFrame()
    Old 08-12-2012 , 17:13   Re: [Any] Status GREP - Partial SteamID Search
    Reply With Quote #2

    Code:
    RegAdminCmd( "say !findname", Cmd_GetInfoFromPlayerName, ADMFLAG_BAN, "say !findname" );
    	RegAdminCmd( "say !steamid", Cmd_GetInfoFromSteamID, ADMFLAG_BAN, "say !steamid" );
    	RegAdminCmd( "say !sgrep", Cmd_StatusGrep, ADMFLAG_BAN, "say !sgrep" );
    These aren't needed (and actually do nothing), SourceMod maps "say !command" to "command" and "sm_command" automatically.
    '!' being whatever the public or private chat triggers are set to.
    __________________
    asherkin is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 08-12-2012 , 18:00   Re: [Any] Status GREP - Partial SteamID Search
    Reply With Quote #3

    Quote:
    Originally Posted by asherkin View Post
    Code:
    RegAdminCmd( "say !findname", Cmd_GetInfoFromPlayerName, ADMFLAG_BAN, "say !findname" );
    	RegAdminCmd( "say !steamid", Cmd_GetInfoFromSteamID, ADMFLAG_BAN, "say !steamid" );
    	RegAdminCmd( "say !sgrep", Cmd_StatusGrep, ADMFLAG_BAN, "say !sgrep" );
    These aren't needed (and actually do nothing), SourceMod maps "say !command" to "command" and "sm_command" automatically.
    '!' being whatever the public or private chat triggers are set to.
    Didn't know at the time I made the plugin.

    Fixed. Thanks for reporting.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 11-02-2012 , 16:43   Re: [Any] Status GREP - Partial SteamID Search
    Reply With Quote #4

    Released 1.1.0 :
    • Added player #id in the replied string (also called userid). Didn't know at that time that it could be used for commands :$. See first post image for a picture of it.
    • Shortened phrases (and corrected typo in FR). You may want to redownload them.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 11-02-2012 at 16:53.
    RedSword is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 03-07-2015 , 23:07   Re: [Any] Status GREP - Partial SteamID Search
    Reply With Quote #5

    Released 1.1.1; Updated code for SM 1.7/2.0 :
    • Replaced GetClientAuthString by GetClientAuthId
    • Using 2.0 syntax
    • Removed FCVAR_REPLICATED
    • Removed FCVAR_NOTIFIED from a non-version cvar
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 03-07-2015 at 23:10.
    RedSword 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 02:27.


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