The first thing: You can't use attach_view() on players. You have to create an entity which will follow the player, just remember about the unrendered model. Then attach_view() to it.
The id thing:
set_task(2.0,"resetview",id)
set_task( get_cvar_float("amx_screentime"), "screenshot", id)
This doesn't make sense. There is no id variable known at this time.