How to make invis people vis to only certain people?
Code:
I think that it should be obvious what I want but if not then I'll clarify. I want it so that the person who types /seeinvis will be able to see invis people as if they had the alpha of something that I can set. I know that this is possible because I've seen it somewhere else, I've no idea how it's done, though. And please, forgive me for my horrible scripting skills. I'm not much of a scriptor, I'm more of a Server Manager. :crab: |
Re: How to make invis people vis to only certain people?
I was working on something a while ago that would have required this, so I'm curious as well.
|
Re: How to make invis people vis to only certain people?
search addtofullpack
|
Re: How to make invis people vis to only certain people?
Alright, thanks, stupok.
I looked up FM_AddToFullPack but I just got confused. I just looked at it for a while and I had no idea on how to use it to do what I wanted. Is there anyone who could just make a little snippet that does what I want? Or help me understand what addtofullpack does and how it works? Because right now I'm just really confused. |
Re: How to make invis people vis to only certain people?
Quote:
it's header is: public addToFullPack(es, e, ent, host, hostflags, player, pSet) "host" is the entity that will receive the data about entity "ent" "es" is the entity data That said check: http://forums.alliedmods.net/showpos...2&postcount=13 |
Re: How to make invis people vis to only certain people?
Code:
|
Re: How to make invis people vis to only certain people?
This should be enough :
Code:
|
Re: How to make invis people vis to only certain people?
I'm confused. I don't really get what your modification do. I don't just want to use a code that works, I'd like to understand it, too, so that I can improve.
I'm sorry for acting like such a noob but that's what I am at scripting. |
Re: How to make invis people vis to only certain people?
Your code makes a player invisible and makes him visible to players marked as viewInvisible. His code makes players invisible to those not marked as viewInvisible. I don't know what is better but with his you don't have to apply invisibility to an ent so probably its better because if a player performs the action of setting himself invisible while dead i'm not sure it will work (Probably you would have to apply it on spawn)
|
Re: How to make invis people vis to only certain people?
Oh, okay, thanks.
My code was just a sample, though, I'm going to use it in a different way that I would have to use my method for. Thank you all for the help! :crab: |
| All times are GMT -4. The time now is 18:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.