AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ H3LP ] Hide specific player from radar (https://forums.alliedmods.net/showthread.php?t=308678)

CrazY. 06-29-2018 17:01

[ H3LP ] Hide specific player from radar
 
Hello, how I can hide a certain player from same team to don't be shown in radar to other players, but keep showing to himself?

I've taken a look at Radar message, but is there no target or whatever like. https://wiki.alliedmods.net/Half-Lif...e_Events#Radar

edon1337 06-29-2018 17:07

Re: [ H3LP ] Hide specific player from radar
 
AFAIK it's not even possible to hide someone from the radar from everyone let alone a more complicated thing like that. I tried to do that for days and I ended up disabling the radar, it's the only choice.

CrazY. 06-29-2018 17:12

Re: [ H3LP ] Hide specific player from radar
 
I tried this but I'm not sure if will work. With bots it's working :lol:

Code:
public messageRadar(iMsgId, iMsgDest, pevEntity) {     if (!is_user_alive(pevEntity))         return PLUGIN_CONTINUE;     new pevPlayer = get_msg_arg_int(1);     if (!is_user_alive(pevPlayer))         return PLUGIN_CONTINUE;     if (avp_get_team(pevEntity) != avp_get_team(pevPlayer))         return PLUGIN_HANDLED;     return PLUGIN_CONTINUE;

Natsheh 06-29-2018 19:00

Re: [ H3LP ] Hide specific player from radar
 
Quote:

Originally Posted by CrazY. (Post 2599960)
I tried this but I'm not sure if will work. With bots it's working :lol:

Code:
public messageRadar(iMsgId, iMsgDest, pevEntity) {     if (!is_user_alive(pevEntity))         return PLUGIN_CONTINUE;     new pevPlayer = get_msg_arg_int(1);     if (!is_user_alive(pevPlayer))         return PLUGIN_CONTINUE;     if (avp_get_team(pevEntity) != avp_get_team(pevPlayer))         return PLUGIN_HANDLED;     return PLUGIN_CONTINUE;

if it worked with bots it should also work with real players.

E1_531G 06-30-2018 08:05

Re: [ H3LP ] Hide specific player from radar
 
When i worked with "Radar" message, I noticed that bloking of this message don't hide the dot from radar, but set it on map 0,0,0 coordinates.

klippy 06-30-2018 09:00

Re: [ H3LP ] Hide specific player from radar
 
You can't, I think it picks up players' teams from "TeamInfo" and displays teammates. Your best bet is showing dots at player's own position or at someone else's.

CrazY. 06-30-2018 19:25

Re: [ H3LP ] Hide specific player from radar
 
So I will set a invalid origin that can't be seen in the radar. No, this won't will work.

Better hide the radar then...


All times are GMT -4. The time now is 12:52.

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