Just make a the easiest timer
Code:
t=0;
while(1)
{
    if(t==10)
    {
        doscriptwithdoor
    }
    t++;
    wait 60;
}
something like that