set_task( 30.0 , "TheFunc" , id );public TheFunc( id ){ if ( is_user_connected( id ) && /* something */ ) { //do this }}