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.
(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 :
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.