Raised This Month: $ Target: $400
 0% 

[TF2]Any plugin that can block spectating on blue team?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-18-2015 , 17:29   [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #1

Hello, i run a dr server and i searched a lot in this plugin area but i couldn't find anything to fit what i need. I need a plugin that can block spectating on blue team(death) for dead players(mostly on red team) and for spectators, too. Does this plugin exists and i missed it? Can somebody do it in his free time if it's not existent?
misterG is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 06-18-2015 , 20:21   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #2

Pretty simple plugin actually. Blocks spectating blue players.
Attached Files
File Type: sp Get Plugin or Get Source (BlockSpectate.sp - 281 views - 757 Bytes)

Last edited by thecount; 06-23-2015 at 15:53.
thecount is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 06-18-2015 , 21:36   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #3

Quote:
Originally Posted by thecount View Post
Pretty simple plugin actually. Blocks spectating blue players.
That is surprisingly simple o.O
__________________
SourcePawn Coding Level: Novice
DJ Data is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-19-2015 , 07:34   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #4

Quote:
Originally Posted by thecount View Post
Pretty simple plugin actually. Blocks spectating blue players.
Thank you mate, that is exactly what i need and is working pretty good! Good job and thank you for your time!
misterG is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-21-2015 , 16:56   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #5

Quote:
Originally Posted by misterG View Post
Thank you mate, that is exactly what i need and is working pretty good! Good job and thank you for your time!
It actually not working as i thought. I mean, on the server side it's doing what is should do but... it spammed me like 5GB of errors in 2 days and a half.
This is what i get:

Code:
L 06/20/2015 - 01:27:15: [SM] Displaying call stack trace for plugin "BlockSpectate.smx":
L 06/20/2015 - 01:27:15: [SM]   [0]  Line 13, /home/forums/content/files/2/3/2/9/9/6/145890.attach::OnPlayerRunCmd()
L 06/20/2015 - 01:27:15: [SM] Native "GetClientTeam" reported: Client index 185 is invalid
Can you fix this?

Last edited by misterG; 06-21-2015 at 18:16.
misterG is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 06-21-2015 , 18:18   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #6

Quote:
Originally Posted by misterG View Post
Can you fix this?
Odd that PlayerRunCmd sends an index that is not a player, but yes I updated my previous post with a version to remove that error.
thecount is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-21-2015 , 18:30   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #7

Quote:
Originally Posted by thecount View Post
Odd that PlayerRunCmd sends an index that is not a player, but yes I updated my previous post with a version to remove that error.
Nope , still the same:
Code:
L 06/22/2015 - 01:30:17: [SM] Native "GetClientTeam" reported: Client index -1 is invalid
L 06/22/2015 - 01:30:17: [SM] Displaying call stack trace for plugin "BlockSpectate.smx":
L 06/22/2015 - 01:30:17: [SM]   [0]  Line 14, BlockSpectate.sp::OnPlayerRunCmd()
misterG is offline
misterG
Senior Member
Join Date: May 2015
Location: Romania
Old 06-23-2015 , 18:32   Re: [TF2]Any plugin that can block spectating on blue team?
Reply With Quote #8

Thanks a lot, no errors in this new version. Good job, thanks for your time!
misterG is offline
Reply



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 05:15.


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