AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved See invisible players (https://forums.alliedmods.net/showthread.php?t=293666)

gravi123 02-06-2017 16:26

See invisible players
 
Okay so I have some players set to be invisible with

set_user_rendering(id,kRenderFxNone,0,0,0,kRe nderTransAlpha,0)

How can i make it so only 1 player can see the other invisible players?

grs4 02-06-2017 16:50

Re: See invisible players
 
in fwAddToFullPack with set_es, you must scan all players
Quote:

if(g_IsPlayerInvisible[i])
set_es(es_handle, RenderAmt, 255)

gravi123 02-06-2017 18:27

Re: See invisible players
 
Could you explain this a bit more?

EFFx 02-06-2017 18:30

Re: See invisible players
 
This will show only for you who's invisible.

gravi123 02-06-2017 19:08

Re: See invisible players
 
Sorry, I managed to make it, thank you :D

hornet 02-06-2017 19:11

Re: See invisible players
 
Look up AddToFullPack. It is responsible for sending the state update for an entity to each client.

Also this may be useful for you https://forums.alliedmods.net/showthread.php?t=47045

georgik57 02-07-2017 04:30

Re: See invisible players
 
best bet would be for you to check the team semiclip code.


All times are GMT -4. The time now is 20:46.

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