AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Hide a player from another player (https://forums.alliedmods.net/showthread.php?t=333352)

devilExE__ 07-06-2021 09:33

Hide a player from another player
 
I want a player to be invisible from another player (kinda like Xalus's dimension mod).
I can't really find the implementation of this in Xalus's dimension mod, and would like to know how exactly I could do this.

jimaway 07-06-2021 11:13

Re: Hide a player from another player
 
http://www.amxmodx.org/api/fun/set_user_rendering

Code:
set_user_rendering(id,kRenderFxNone ,0,0,0,kRenderTransAlpha,0)

devilExE__ 07-06-2021 11:17

Re: Hide a player from another player
 
Quote:

Originally Posted by jimaway (Post 2752006)
http://www.amxmodx.org/api/fun/set_user_rendering

Code:
set_user_rendering(id,kRenderFxNone ,0,0,0,kRenderTransAlpha,0)

That will make the player invisible to everyone. I want to be visible to a specific player, but invisible to the others.

Also, could you link me the source of the dimension mod ? I can only find it's implementation in the AMXX Minigames mod.

raizo11 07-06-2021 13:58

Re: Hide a player from another player
 
That works in sourcemod...in amxmodx it's impossible!

devilExE__ 07-06-2021 14:22

Re: Hide a player from another player
 
Quote:

Originally Posted by raizo11 (Post 2752028)
That works in sourcemod...in amxmodx it's impossible!

It is possible. This plugin uses a system that I would like to implement myself but I can't really manage the invisibility thing.

Xpym4uk76 07-06-2021 15:59

Re: Hide a player from another player
 
Maybe that plugin can help you, there is invisibility when you in player and that see only you.

HamletEagle 07-07-2021 00:06

Re: Hide a player from another player
 
Look into FM_AddToFullPack.

devilExE__ 07-07-2021 04:49

Re: Hide a player from another player
 
+rep for Xpym4uk76 and HamletEagle. For anyone seeing this, an application of FM_AddToFullPack that helped me can be found here.


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

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