AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CS:GO] Show/Hide Players on Radar (https://forums.alliedmods.net/showthread.php?t=239682)

Internet Bully 05-01-2014 18:30

[CS:GO] Show/Hide Players on Radar
 
PHP Code:

public OnClientPutInServer(client)
{
    
SDKHook(clientSDKHook_PostThinkRadar);
}

public 
Radar(client)
{
    if(
isAdmin(client))
        
SetEntPropEnt(clientProp_Send"m_bSpotted"0);
    else
        
SetEntPropEnt(clientProp_Send"m_bSpotted"1);


Example shows all non-admins permanently and hides all admins on radar. isAdmin is my own function, just do your own admin check.

We use it for flagging campers/AFKs on everyone's radar. If a player hasn't moved X units in Y time, show them on the radar to everyone. We also use it, depending on the mode, to always show the bombcarrier on radar to promote better teamwork.

hlstriker 05-01-2014 21:40

Re: [CS:GO] Show/Hide Players on Radar
 
Should that be SetEntProp instead of SetEntPropEnt?

Internet Bully 05-02-2014 01:00

Re: [CS:GO] Show/Hide Players on Radar
 
Doesn't seem to make a difference in this case.

WiggPerson 05-04-2014 03:41

Re: [CS:GO] Show/Hide Players on Radar
 
Awesome. How can i do it via C++?

xf117 05-04-2014 09:18

Re: [CS:GO] Show/Hide Players on Radar
 
Do you know how to make people glow for all alive players like in the death cam mode? That would help even more for anti-camp plugin.

Ermert1992 07-08-2014 12:11

Re: [CS:GO] Show/Hide Players on Radar
 
Very good. I've looked for it since a long time. Thanks! :fox:

TheWho 07-09-2014 19:03

Re: [CS:GO] Show/Hide Players on Radar
 
Quote:

Originally Posted by xf117 (Post 2133423)
Do you know how to make people glow for all alive players like in the death cam mode? That would help even more for anti-camp plugin.

Yes. Try to look a bit in the CSGO SDK and you can see which light settings they use.

bseos 08-23-2014 20:55

Re: [CS:GO] Show/Hide Players on Radar
 
is there anyway to show the people in your steam group (clan) in different colours on the mini map?
Is this illegal to do?


All times are GMT -4. The time now is 09:01.

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