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.
__________________