I think this will work, but you still have to figure out who threw the flashbang:
(Maybe there's a better way, using set_task() is a bit fishy.)
EDIT: Nevermind, I just realized this is a really crappy way to do what you're looking for. It's gonna print a message for every person that's flashed, so that's dumb. I'll leave it up anyways.
Code:
#include <amxmodx>
#define PLUGIN "Flash Victims"
#define VERSION "1.0"
#define AUTHOR "stupok69"
#define MAX_PLAYERS 32
new bool:has_been_flashed[MAX_PLAYERS+1]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ScreenFade", "FlashedEvent", "be", "4=255", "5=255", "6=255", "7>199") // ty v3x
}
public client_connect(id)
has_been_flashed[id] = false
public FlashedEvent(id)
{
has_been_flashed[id] = true
set_task(0.1, "display_flashed")
}
public display_flashed()
{
new count
for(new i = 1; i < MAX_PLAYERS+1; i++)
{
if(has_been_flashed[i])
{
count++
has_been_flashed[i] = false
}
}
client_print(0, print_chat, "%i people have been flashed", count)
}