Raised This Month: $12 Target: $400
 3% 

Simple Spectate


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Antithasys
Moderator
Join Date: Apr 2008
Plugin ID:
1144
Plugin Version:
1.2.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
7 
Plugin Description:
Spectate a player with a hud and follow them through death.
Unapprover:
Reason for Unapproving:
requested
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:	3848
Size:	55.5 KB
ID:	49171   Click image for larger version

Name:	screenshot2.jpg
Views:	2957
Size:	62.0 KB
ID:	49950  
Attached Files
File Type: zip Simple Spectate.zip (40.0 KB, 2249 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
olj
Veteran Member
Join Date: Jun 2009
Old 09-06-2009 , 14:02   Re: Simple Spectate
Reply With Quote #2

Here's russian one
Attached Files
File Type: txt simplespectate.phrases.txt (529 Bytes, 637 views)
__________________

Last edited by Antithasys; 09-06-2009 at 14:12.
olj is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 09-06-2009 , 14:25   Re: Simple Spectate
Reply With Quote #3

wo0t for fullfilling my year old request for this.
retsam is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 09-06-2009 , 15:03   Re: Simple Spectate
Reply With Quote #4

Yay I kept bugging goerge to tell me if it was done.
__________________

DontWannaName is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 09-06-2009 , 16:40   Re: Simple Spectate
Reply With Quote #5

polish translation:
Attached Files
File Type: txt simplespectate.phrases.txt (381 Bytes, 564 views)
__________________
Zuko is offline
Send a message via ICQ to Zuko
Jamster
Veteran Member
Join Date: Jun 2008
Old 09-06-2009 , 18:33   Re: Simple Spectate
Reply With Quote #6

YES, much needed plugin, cheers man.
Jamster is offline
Ghost Killer
Member
Join Date: Aug 2009
Old 09-06-2009 , 19:04   Re: Simple Spectate
Reply With Quote #7

Thanks mate. Very nice plugin, I was just looking for it tooday.
Ghost Killer is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 09-07-2009 , 00:39   Re: Simple Spectate
Reply With Quote #8

omg, I forgot to change "en" to "pl" in translation file ;/

Edit.
Antithasys change it in first post.
__________________
Zuko is offline
Send a message via ICQ to Zuko
Antithasys
Moderator
Join Date: Apr 2008
Old 09-07-2009 , 01:11   Re: Simple Spectate
Reply With Quote #9

Quote:
Originally Posted by Zuko View Post
omg, I forgot to change "en" to "pl" in translation file ;/

Edit.
Antithasys change it in first post.
Caught it already when I reviewed the file. No worries.
__________________
[my plugins]

When you think about asking a question... consider what have you tried?
Antithasys is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 09-07-2009 , 01:46   Re: Simple Spectate
Reply With Quote #10

if I 'click' on "Plugin Dependencies:" link I got 404 error.
__________________
Zuko is offline
Send a message via ICQ to Zuko
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:17.


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