View Single Post
Author Message
komashchenko
BANNED
Join Date: Nov 2013
Old 08-11-2017 , 05:06   [CSGO] How to hide player from radar
Reply With Quote #1

PHP Code:
#pragma semicolon 1
#include <sdktools>

//In fact these are flags Spotted the player, to understand them laziness but by default 9, 0 - blocks player update on the radar
//I did not notice that the game changed the flags in the middle of the game, player can change commands but the value does not change, as i understand it is put only 1 time at the entrance
Address g_aCanBeSpotted view_as<Address>(892); //windows 868

public void OnPluginStart()
{
    
RegConsoleCmd("hide"hide); 
    
RegConsoleCmd("uhide"uhide); 
}

public 
Action hide(int iClientint args
{
    
//It is necessary that when we block update player on the radar, he did not remain constantly visible on it
    
SetEntProp(iClientProp_Send"m_bSpotted"false);
    
SetEntProp(iClientProp_Send"m_bSpottedByMask"040);
    
SetEntProp(iClientProp_Send"m_bSpottedByMask"041);
   
    
//set flags to 0
    
StoreToAddress(GetEntityAddress(iClient)+g_aCanBeSpotted0NumberType_Int32);
}

public 
Action uhide(int iClientint args
{
    
//Flags are set by default
    
StoreToAddress(GetEntityAddress(iClient)+g_aCanBeSpotted9NumberType_Int32);


Operability Demonstration (Look at radar)
http://steamcommunity.com/sharedfile...?id=1106572386
http://steamcommunity.com/sharedfile...?id=1106572440
http://steamcommunity.com/sharedfile...?id=1106572472

Last edited by komashchenko; 08-11-2017 at 08:43. Reason: Works without signatures on Windows and Linux
komashchenko is offline