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

Block Spectator List


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 04-30-2017 , 15:23   Block Spectator List
Reply With Quote #1

A lot of cheat tools for CSGO include a spectator list.
Basically its a list which shows the cheater all the players who are spectating them so they can not act suspicious if an admin or many people are spectating them.

I am wondering if its possible to easily block this while not messing up any other spectating feature.

Would make a very useful plugin.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 04-30-2017 , 15:59   Re: Block Spectator List
Reply With Quote #2

Don't transmit spectators (SDKHook_SetTransmit) or somehow prevent m_hObserverTarget from being sent idk how they do it.

Just checked and they use m_hObserverTarget
__________________

Last edited by Pelipoika; 04-30-2017 at 16:42.
Pelipoika is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-30-2017 , 17:15   Re: Block Spectator List
Reply With Quote #3

Quote:
Originally Posted by Pelipoika View Post
Just checked and they use m_hObserverTarget
That's exactly it.

I made a post about this a little while back: https://forums.alliedmods.net/showthread.php?t=293467

But it never worked and we kind of pushed it off. I'm definitely interested in this as well.
__________________

Last edited by sneaK; 04-30-2017 at 17:15.
sneaK is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 04-30-2017 , 18:48   Re: Block Spectator List
Reply With Quote #4

Looked at the code your posted, setting m_hObserverTarget to 0 instead of -1 on Headlines' code should work.

snipped, look below
__________________

Last edited by Chaosxk; 05-16-2017 at 15:02.
Chaosxk is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-30-2017 , 21:25   Re: Block Spectator List
Reply With Quote #5

Quote:
Originally Posted by Chaosxk View Post
Looked at the code your posted, setting m_hObserverTarget to 0 instead of -1 on Headlines' code should work.
Unfortunately this still causes server crashes upon client connect, with -1 or 0. https://crash.limetech.org/y7mgid2ubvwh
__________________
sneaK is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 04-30-2017 , 23:24   Re: Block Spectator List
Reply With Quote #6

I ran the same code on a TF2 server and it ran fine, running the same thing on CS:GO crashed the server. I changed the netprop to m_iHealth and still crashed my CS:GO server. Seems like SendProxy gamedata needs to be updated?
__________________
Chaosxk is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 05-01-2017 , 00:13   Re: Block Spectator List
Reply With Quote #7

Quote:
Originally Posted by Chaosxk View Post
I ran the same code on a TF2 server and it ran fine, running the same thing on CS:GO crashed the server. I changed the netprop to m_iHealth and still crashed my CS:GO server. Seems like SendProxy gamedata needs to be updated?
SM9() gave me some updated gamedata for CSGO:

PHP Code:
"UpdateOnRemove"
{
  
"windows" "110"
  "linux" "111"

Could someone give it a shot and let me know if it works. I can't actually test it myself as I don't have a cheat/spec list tool.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!


Last edited by Byte; 05-01-2017 at 00:13.
Byte is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-01-2017 , 01:18   Re: Block Spectator List
Reply With Quote #8

Quote:
Originally Posted by Byte View Post
SM9() gave me some updated gamedata for CSGO:

PHP Code:
"UpdateOnRemove"
{
  
"windows" "110"
  "linux" "111"

Could someone give it a shot and let me know if it works. I can't actually test it myself as I don't have a cheat/spec list tool.
As we discussed (if anyone else is interested), nope
__________________

Last edited by sneaK; 05-01-2017 at 01:18.
sneaK is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 05-16-2017 , 15:05   Re: Block Spectator List
Reply With Quote #9

Bumped, looks like SendProxy was updated for CS:GO, tested it and no longer crashes: https://forums.alliedmods.net/showpo...&postcount=319

Uploaded updated code which should block spectators and not have a weird 3rd person glitch effect it had before.

Also, i can not confirm if it works since i don't use the cheat tool.
Attached Files
File Type: sp Get Plugin or Get Source (hidespec.sp - 177 views - 926 Bytes)
__________________

Last edited by Chaosxk; 05-16-2017 at 15:16.
Chaosxk is offline
zipcore
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 05-16-2017 , 18:06   Re: Block Spectator List
Reply With Quote #10

Noice
__________________
zipcore 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 01:14.


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