AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] With setting invisibility on user. (https://forums.alliedmods.net/showthread.php?t=236884)

Flick3rR 03-12-2014 17:47

[HELP] With setting invisibility on user.
 
Hi, all! I want just to ask how am I supposed to set 95% invisibility on user. Something like maybe
cs_set_user_invisibility 95% :D :D :D
I know that this ^ is bullsh*t, but there has to be some command to do this. Thanks a lot!

Kiske 03-13-2014 19:20

Re: [HELP] With setting invisibility on user.
 
PHP Code:

entity_set_int(idEV_INT_rendermodekRenderTransAlpha);
entity_set_float(idEV_FL_renderamt12.75); 

12.75 is 95%.

Flick3rR 03-14-2014 20:51

Re: [HELP] With setting invisibility on user.
 
Allright, thanks, and does it need some special include, or something else? Or i just put this in the case of the menu and it's ready?

Kiske 03-15-2014 01:37

Re: [HELP] With setting invisibility on user.
 
Quote:

Originally Posted by Flick3rR (Post 2111587)
Allright, thanks, and does it need some special include, or something else? Or i just put this in the case of the menu and it's ready?

PHP Code:

#include <engine> 

... if hasn't declared.

Flick3rR 03-16-2014 12:54

Re: [HELP] With setting invisibility on user.
 
It worked! Thank you a lot!!!

Ham_Handled 03-18-2014 13:24

Re: [HELP] With setting invisibility on user.
 
Or do it by fun

#include <fun>

Function: set_user_rendering()


All times are GMT -4. The time now is 06:02.

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