Raised This Month: $ Target: $400
 0% 

How will I catch if someone is flashed?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-12-2012 , 17:27   Re: How will I catch if someone is flashed?
#4

Run this:
Code:
#include <amxmodx> public plugin_init() {     register_plugin("ScreenFade Info", "0.0.1", "Exolent");         register_event("ScreenFade", "EventScreenFade", "b"); } public EventScreenFade(id) {     log_amx("ScreenFade for %d | Duration: %d | HoldTime: %d | Flags: %d | RGB: %d,%d,%d | Alpha: %d",         id, read_data(1), read_data(2), read_data(3), read_data(4), read_data(5), read_data(6), read_data(7)); }

Test different types of flashes and see how all of the values are.
You will know that the color will be white, so RGB will be 255,255,255.
Also, the alpha is always only 2 values: 255 (full flash) and like 200 (partial flash, value may be different).

Once you know those values, you hook ScreenFade message and check if those values are set.
If the values match, then the player got flashed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
 



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 00:20.


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