AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Screenfade event to spectator (https://forums.alliedmods.net/showthread.php?t=127748)

tm. 05-24-2010 11:45

Screenfade event to spectator
 
Hi. How do you set the same screenfade event on a player that is spectating the player who actually has been screen faded (for example flashbang)?

Alka 05-24-2010 16:49

Re: Screenfade event to spectator
 
Hook ScreenFade event for a player, check if player it's spec'ed by someone then send a ScreenFade message with same values from event to spectators. If you want some more informations about this event check this.

ConnorMcLeod 05-24-2010 16:55

Re: Screenfade event to spectator
 
You mean if a player is flashed by a plugin then, because if a player is flashed ny a flashbang, spectating players are flashed as well, and even if you spectate a player after he has been flashed, some values have been kept on him so you are flashed as he is supposed to be.

tm. 05-25-2010 04:01

Re: Screenfade event to spectator
 
Yes, I need it for a plugin that changes the flashbang's color, I want the spectating player to have the same colors, not the default white. I saw that in the most plugins the screenfade event it's registered with flags "be" (for example v3x's Colored Flashbangs plugin).
"b" - Event sent to a single target
"e" - Only if sent to an alive player
If I use just "b" flag it's something wrong?

Alka 05-25-2010 09:02

Re: Screenfade event to spectator
 
Yea, you can remove "e" flag, and should work for spectators too.

ConnorMcLeod 05-25-2010 15:57

Re: Screenfade event to spectator
 
Colors wouldn't be the same in that case.


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

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