Hook Flashlight event :
PHP Code:
register_event("Flashlight", "Event_Flashlight", "be")
public Event_Flashlight(id)
{
client_print(id, print_chat, "You have just turned %s your flashlight", read_data(1) ? "on" : "off")
}
Make sure that cvar flashlight_show_all is 1, or your plugin won't be able to catch the event.
__________________