AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Player's invisibility (https://forums.alliedmods.net/showthread.php?t=173130)

KamiN 11-30-2011 16:10

Player's invisibility
 
Is there any other way to make invisible player than this one?

Code:

set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);
Becouse if in options u set "swoftware" renderer u can clearly see those "invisible" players.

tuty 11-30-2011 16:34

Re: Player's invisibility
 
Quote:

Originally Posted by KamiN (Post 1605438)
Is there any other way to make invisible player than this one?

Code:

set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0);
Becouse if in options u set "swoftware" renderer u can clearly see those "invisible" players.



get new pc
dont use software
problem solved

Menethil 11-30-2011 16:53

Re: Player's invisibility
 
or block the software mode.

Flipper_SPb 11-30-2011 17:12

Re: Player's invisibility
 
Use set_entity_visibility() to solve that.
http://www.amxmodx.org/funcwiki.php?go=func&id=407

Devil259 12-01-2011 04:46

Re: Player's invisibility
 
http://forums.alliedmods.net/showpos...43&postcount=5

KamiN 12-01-2011 07:50

Re: Player's invisibility
 
Quote:

Originally Posted by Flipper_SPb (Post 1605466)
Use set_entity_visibility() to solve that.
http://www.amxmodx.org/funcwiki.php?go=func&id=407


Can u give an example how to make invisible ct's?

Code:

.........
case DAY_INVISIBILITY:
            {   
                if(IsPlayer(i) && is_user_alive(i))
                {   
                    switch(cs_get_user_team(i))
                    {
                        case CS_TEAM_T:
                        {
                          .......
                        }
                       
                        case CS_TEAM_CT:
                        {
                        ???
                        }
                    }
                }

....

            }

...........

And how to make them visible again if "case DAY_INVISIBILITY" is not active?


All times are GMT -4. The time now is 08:34.

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