I have this code and I need to set gbPlayerScreenFading[id] = true if player has his screen fading and set it to false if the fading is over. If you know the event to catch when it's over or how long flashbang fading effect lasts, please tell me :/
PHP Code:
register_event("ScreenFade", "EventFlashbang", "b", "4=255", "5=255", "6=255", "7=200", "7=255")
/***/
public EventFlashbang(id)
{
gbPlayerScreenFading[id] = true;
set_task(HOWLONG, "ScreenFadingOver" ,id)
}
/***/
public ScreenFadingOver(id)
{
gbPlayerScreenFading[id] = false;
}