State police get six months to create rules for gun permits