AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [TF2]Any plugin that can block spectating on blue team? (https://forums.alliedmods.net/showthread.php?t=264547)

misterG 06-18-2015 17:29

[TF2]Any plugin that can block spectating on blue team?
 
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?

thecount 06-18-2015 20:21

Re: [TF2]Any plugin that can block spectating on blue team?
 
1 Attachment(s)
Pretty simple plugin actually. Blocks spectating blue players.

DJ Data 06-18-2015 21:36

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

Originally Posted by thecount (Post 2309332)
Pretty simple plugin actually. Blocks spectating blue players.

That is surprisingly simple o.O

misterG 06-19-2015 07:34

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

Originally Posted by thecount (Post 2309332)
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 06-21-2015 16:56

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

Originally Posted by misterG (Post 2309465)
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?

thecount 06-21-2015 18:18

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

Originally Posted by misterG (Post 2310387)
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.

misterG 06-21-2015 18:30

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

Originally Posted by thecount (Post 2310411)
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()


thecount 06-21-2015 19:14

Re: [TF2]Any plugin that can block spectating on blue team?
 
Ah, okay. Apparently you can be an observer without a target. Should be fixed now.

misterG 06-23-2015 15:16

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

Originally Posted by thecount (Post 2310428)
Ah, okay. Apparently you can be an observer without a target. Should be fixed now.

Ahh man, i didn't have time to test it those days but same:
Code:

L 06/23/2015 - 22:14:29: [SM] Displaying call stack trace for plugin "BlockSpectate.smx":
L 06/23/2015 - 22:14:29: [SM]  [0]  Line 15, BlockSpectatev3.sp::OnPlayerRunCmd()
L 06/23/2015 - 22:14:29: [SM] Native "GetClientTeam" reported: Client index 461 is invalid

Only difference now is just spamming this index, i mean just this 461 number, no others as in prev version.

thecount 06-23-2015 15:53

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

Originally Posted by misterG (Post 2311164)
Ahh man, i didn't have time to test it those days but same:
Code:

L 06/23/2015 - 22:14:29: [SM] Displaying call stack trace for plugin "BlockSpectate.smx":
L 06/23/2015 - 22:14:29: [SM]  [0]  Line 15, BlockSpectatev3.sp::OnPlayerRunCmd()
L 06/23/2015 - 22:14:29: [SM] Native "GetClientTeam" reported: Client index 461 is invalid

Only difference now is just spamming this index, i mean just this 461 number, no others as in prev version.

Apologies for taking so many half-measured fixes and flooding this thread with comments. THIS new version will not give that error anymore. (And if somehow it magically does, that error doesn't affect the functionality whatsoever)


All times are GMT -4. The time now is 05:15.

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