Raised This Month: $ Target: $400
 0% 

Solved See invisible players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gravi123
Member
Join Date: Feb 2016
Old 02-06-2017 , 16:26   See invisible players
Reply With Quote #1

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?

Last edited by gravi123; 02-06-2017 at 19:08.
gravi123 is offline
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 02-06-2017 , 16:50   Re: See invisible players
Reply With Quote #2

in fwAddToFullPack with set_es, you must scan all players
Quote:
if(g_IsPlayerInvisible[i])
set_es(es_handle, RenderAmt, 255)
grs4 is offline
gravi123
Member
Join Date: Feb 2016
Old 02-06-2017 , 18:27   Re: See invisible players
Reply With Quote #3

Could you explain this a bit more?
gravi123 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-06-2017 , 18:30   Re: See invisible players
Reply With Quote #4

This will show only for you who's invisible.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
gravi123
Member
Join Date: Feb 2016
Old 02-06-2017 , 19:08   Re: See invisible players
Reply With Quote #5

Sorry, I managed to make it, thank you
gravi123 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-06-2017 , 19:11   Re: See invisible players
Reply With Quote #6

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
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-07-2017 , 04:30   Re: See invisible players
Reply With Quote #7

best bet would be for you to check the team semiclip code.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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