AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [Tutorial][CSS] Radar spot edit! (https://forums.alliedmods.net/showthread.php?t=135788)

Franc1sco 06-20-2012 12:05

Re: [Tutorial][CSS] Radar spot edit!
 
Hello,

As would have to be for that only X persons can view all enemies in radar? for example only admins can view all enemies in radar

I tried several ways but I have not achieved this :(

someone would know how?

Mitchell 06-20-2012 15:30

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by Franc1sco (Post 1732494)
Hello,

As would have to be for that only X persons can view all enemies in radar? for example only admins can view all enemies in radar

I tried several ways but I have not achieved this :(

someone would know how?

Just edit the loop and make it check if the target is a admin, thr only hard part is finding out if the target is the player recieving the enemy's locations, or if the 'client' is the one recieving, you have to test it out more.

Bacardi 06-20-2012 15:31

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by Franc1sco (Post 1732494)
Hello,

As would have to be for that only X persons can view all enemies in radar? for example only admins can view all enemies in radar

I tried several ways but I have not achieved this :(

someone would know how?

Can't do.
m_bPlayerSpotted is boolean and tells which client index is true, then all enemies see him in radar.


- If want show all enemies to X person, then you need hide all enemies from teammates. Can't do even that.
- Or you can hide that X person from all enemies.

Franc1sco 08-12-2012 17:21

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by Bacardi (Post 1732677)
Can't do.
m_bPlayerSpotted is boolean and tells which client index is true, then all enemies see him in radar.


- If want show all enemies to X person, then you need hide all enemies from teammates. Can't do even that.
- Or you can hide that X person from all enemies.

I've done some testing and found that If change the "m_iTeamNum" with the enemy team (with sendproxy), the enemies will be show in the radar :D


All times are GMT -4. The time now is 18:19.

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