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)?
|
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.
|
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.
|
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? |
Re: Screenfade event to spectator
Yea, you can remove "e" flag, and should work for spectators too.
|
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.