Raised This Month: $ Target: $400
 0% 

Screenfade event to spectator


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tm.
Member
Join Date: Apr 2010
Old 05-24-2010 , 11:45   Screenfade event to spectator
Reply With Quote #1

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)?
tm. is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-24-2010 , 16:49   Re: Screenfade event to spectator
Reply With Quote #2

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.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-24-2010 , 16:55   Re: Screenfade event to spectator
Reply With Quote #3

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.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
tm.
Member
Join Date: Apr 2010
Old 05-25-2010 , 04:01   Re: Screenfade event to spectator
Reply With Quote #4

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?

Last edited by tm.; 05-25-2010 at 11:22.
tm. is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-25-2010 , 09:02   Re: Screenfade event to spectator
Reply With Quote #5

Yea, you can remove "e" flag, and should work for spectators too.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-25-2010 , 15:57   Re: Screenfade event to spectator
Reply With Quote #6

Colors wouldn't be the same in that case.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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