View Single Post
Author Message
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
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:	974
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, 341 views)
File Type: sp Get Plugin or Get Source (statusgrep.sp - 833 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