View Single Post
Author Message
WhiteWolf
Junior Member
Join Date: Oct 2007
Old 10-24-2007 , 00:55   Observe Client 1.2.4
Reply With Quote #1

Simple plugin to duplicate ma_observe / ma_endobserve functionality.

Commands:
sm_observe <playername>
sm_endobserve


Changelog for 1.2.4 - RedSword
* Fixed not spec'ing the good player when dying in CS:GO
* Removed FCVAR_REPLICATED from version ConVar

Changelog for 1.2.2 - psychonic
* Fixed sm_observe so it will print how to use the command if you don't specify a client
* Fixed ReplyToTargetError() error

Updated to 1.2.1, changing the admin flag from SLAY to KICK.

Changelog for 1.2 - Thanks to psychonic
* Now works with DOD:S and bots
* Fixed errors like PrintToChat.. client not in game
* Changed the steambans check to use sbsrc_version (sb_version is for sourcebans, which does not have the sb_status command).
* Changed all GetMaxClients() calls to just use MaxClients var.
* Removed hooking of "player_disconnect" event in favor of using the
* OnClientDisconnect() forward.
* Added CVAR: observe_version

When you use sm_observe <name>; this plugin will attempt to make sure you're automatically spectating this client on death/each new round.

Version 1.1:
Should work better, includes sb_status integration.

Add it into the Super Menu's:
You can put two menu options for this into the Super commands menu plugin by using:

Quote:
"Observe a player"
{
"cmd" "sm_observe #1"
"admin" "sm_kick"
"execute" "player"
"1"
{
"type" "player"
"method" "name"
"title" "Player to observe:"
}
}
"End Observe"
{
"cmd" "sm_endobserve"
"admin" "sm_kick"
"execute" "player"
}
Credits:
Mani - Showed me his MAP implementation, this is roughly based off that
puopjik - Fixing some bugs
smithxxl - Fixing some bugs
Psychonic - Fixing bugs and creating a new version
RedSword - Fixing CSGO bug
Attached Files
File Type: sp Get Plugin or Get Source (observe.sp - 3374 views - 6.3 KB)
File Type: txt observe.phrases.txt (1.6 KB, 811 views)
__________________
I'm currently working on sourcebans and steambans as a developer. Contribute today for a better product tomorrow.

Last edited by RedSword; 10-09-2015 at 19:52. Reason: 1459ph; added russian translation
WhiteWolf is offline
Send a message via ICQ to WhiteWolf Send a message via MSN to WhiteWolf