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

Solved [CSGO] Blocking Spectator Information


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 02-01-2017 , 13:07   [CSGO] Blocking Spectator Information
Reply With Quote #1

Hey guys, it's come to my attention that some cheats allow the user to see who is spectating who. I've found some code from a public open source cheat that has this as a feature. Is it possible to block this exact spectator information to clients with an SM plugin? It would be very helpful, since cheaters now know who is spectating them, and will "toggle off" when they know an admin suspects them of cheating.

Edit: Post below no workaroni

Edit 2: Plugin release here: https://forums.alliedmods.net/showthread.php?t=297604
__________________

Last edited by sneaK; 05-18-2017 at 17:55.
sneaK is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 02-01-2017 , 15:53   Re: [CSGO] Blocking Spectator Information
Reply With Quote #2

Just posting this and hoping that someone else has a better solution or other ideas.

Untested
PHP Code:
#include <sourcemod>
#include <sendproxy>

#define PLUGIN_VERSION "1.0"

public Plugin myinfo =
{
    
name "[ANY] Observer Obscurer",
    
author "Headline",
    
description "Forces client's m_hObserverTarget to -1",
    
version PLUGIN_VERSION,
    
url "http://www.michaelwflaherty.com"
}

public 
void OnClientPutInServer(int client)
{
    
SendProxy_Hook(client"m_hObserverTarget"Prop_IntPropHook_CallBack);
}

public 
void OnClientDisconnect(int client)
{
    
SendProxy_Unhook(client"m_hObserverTarget"PropHook_CallBack);
}

public 
Action PropHook_CallBack(int entity, const char[] propnameint &iValueint element)
{
    
iValue = -1;
    return 
Plugin_Changed;


Last edited by headline; 02-01-2017 at 16:04.
headline 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 00:25.


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