AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [Any] Status GREP - Partial SteamID Search (https://forums.alliedmods.net/showthread.php?t=163301)

RedSword 07-28-2011 19:47

[Any] Status GREP - Partial SteamID Search
 
3 Attachment(s)
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.

Attachment 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.

asherkin 08-12-2012 17:13

Re: [Any] Status GREP - Partial SteamID Search
 
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.

RedSword 08-12-2012 18:00

Re: [Any] Status GREP - Partial SteamID Search
 
Quote:

Originally Posted by asherkin (Post 1770114)
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.

RedSword 11-02-2012 16:43

Re: [Any] Status GREP - Partial SteamID Search
 
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.

RedSword 03-07-2015 23:07

Re: [Any] Status GREP - Partial SteamID Search
 
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


All times are GMT -4. The time now is 18:49.

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