I am trying to get the duration and hold time so I can find out how long they are flashed for and at what level. I am guessing hold time is how long it will stay at the intensity it originally flashed at, and that the duration is the total length that your screen will be 'faded'. My only problem is that I am getting some strange numbers for the duration and the hold time.
Something along the lines of
Duration:1000-2400, Hold Time:600-1300
I don't think its in ms, because i don't remember ever being flashed for 24 sec, or even 13 for that matter...
any help as to what these numbers are displayed as? ive looked into a couple other plugins and scanned the forums but for the most part people just alter the colors when hooking this event.
PHP Code:
public plugin_init() {
register_plugin("1","2","3")
register_event("ScreenFade", "Event_Blinded", "be", "4=255", "5=255", "6=255", "7>199")
return PLUGIN_CONTINUE
}
public Event_Blinded(id) {
client_print(id, print_chat, "Duration:%i Hold Time:%i Alpha:%i", read_data(1), read_data(2), read_data(7))
return PLUGIN_CONTINUE
}
__________________