Thread: Simple Spectate
View Single Post
Author Message
Antithasys
Moderator
Join Date: Apr 2008
Old 09-06-2009 , 13:45   Simple Spectate
Reply With Quote #1

Simple Spectate

Description:

Spectate a player and follow them through death.
Plugin is part of the Simple Plugins project.

Features:
  • Follows a player thru death
  • Displays player name and steamid on screen
  • Displays ipaddress to admins on screen (Menu/Panel Hud Only)
  • Displays kills and deaths on screen (Menu/Panel Hud Only)
  • Ability to punish player
  • SteamBans support integrated (auto sb_status call when installed)
  • SourceBans support integrated
  • MySQLBans support integrated
  • Ability to flag a player as a cheater**
  • Admin menu integration

**This ability requires Dukehacks 0.0.2.0 but the plugin will work without it. It's only optional and if you do have dukehacks installed the feature will be enabled.

Commands:
  • sm_spectator <#userid|name> - Spectate a player
  • sm_spec <#userid|name> - Spectate a player
  • sm_observe <#userid|name> - Spectate a player
  • sm_stopspec - Stops spectating a player
  • sm_endobserve - Stops spectating a player
  • sm_specinfo - Toggles the hud display if in spectator

Console Variables:

sm_spectate_hudmode - Hud Mode: 0 = Hud Text | 1 = Panel/Menu (NOTE: The panel/menu will override other menus until canceled)
sm_spectate_menutype - Menu Mode: 0 = Panel | 1 = Menu
sm_spectate_adminflag - Admin flag to use for hud
sm_spectate_restricthud - Restriction Mode: 0 = Everyone | 1 = Admins only
sm_spectate_ban - Enables/Disables bans
sm_spectate_banperm - Enables/Disables perma bans
sm_spectate_beacon - Enables/Disables beacon punishment
sm_spectate_blind - Enables/Disables blind punishment
sm_spectate_cheater - Enables/Disables cheater flag punishment
sm_spectate_drug - Enables/Disables drug punishment
sm_spectate_freeze - Enables/Disables freeze punishment
sm_spectate_freezebomb - Enables/Disables freezebomb punishment
sm_spectate_kick - Enables/Disables kick punishment
sm_spectate_slap - Enables/Disables slap punishment
sm_spectate_slay - Enables/Disables slay punishment
sm_spectate_timebomb - Enables/Disables timebomb punishment
Installation:
Place the simple-spectate.smx in the /sourcemod/plugins dir.
Place the simple-plugins.smx in the /sourcemod/plugins dir.
Place the simplespectate.phrases.txt in the /sourcemod/translations dir.
Changelog:

Quote:
(27/09/09): Version 1.2.1
-----------------------
! Fixed security issue with hud displaying punish commands to non admins
! Fixed sm_spectate_cheater not loading right setting

(27/09/09): Version 1.2.0
-----------------------
+ Added punishment menu on hud
+ Added SourceBans support for bans
+ Added MySQLBans support for bans
! Fixed conflict detection with Observe plugin
! Fixed bug where spectator stopped following target if closed hud with sm_spectate_menutype 1
? Corrected project name in comments and updated url in plugin info
Features/Bugs:
Please use the project site to report all bugs and request additional features.

Future Updates:

I will be adding Sourcebans support to submit bans from the general public right from the hud when Sourcebans 2.0 is released. I am not going to code it twice. Ban support for admins is active now.

Looking for additional translations! If you have or can translate the phrases, please do and post with the new translations. I will add them to the file and certainly credit you.

Russian - olj - Incomplete
Polish - Zuko - Incomplete

Notes:

This plugin requires Simple Plugins Core to work. It has NOT been included in the .zip file.

I added support for griefing cheaters from my Cheater Hater plugin. Admins can now flag a player as a cheater and which nulls anything but self damage and makes them die on any fall damage. For this feature to work you need Dukehacks 0.0.2.0. It is not required to have this installed and this plugin will work if not, but the feature will not be available. Additionally, this plugin will NOT autoload dukehacks. Since I wanted to keep it optional I have removed the autoload feature. Therefore if you do not use dukehacks with anything else, and installed it specifically for this plugin, you will need another plugin to autoload dukehacks. I have created a plugin to do just that and included that in the .zip file as well. You only need the autoload_dukehacks files if you have no other plugins that will load dukehacks.

There was a problem with the tf2.inc file that comes with sourcemod. I had to change that file in order to get it to work with other games. I also had to change the dukehacks.inc file to make it work with or without dukehacks installed. I included both files with my changes as well. Plugin is compiled in 1.2.3.
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	3864
Size:	55.5 KB
ID:	49171   Click image for larger version

Name:	screenshot2.jpg
Views:	2971
Size:	62.0 KB
ID:	49950  
Attached Files
File Type: zip Simple Spectate.zip (40.0 KB, 2253 views)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 12-30-2009 at 16:00. Reason: updated version
Antithasys is offline